Html/xml coding help for SMIL
We are just switching over to using Flash and I've got a
Event URI but my hosting company is having trouble on how to show
the player/stream on our webpage. Is there a sample I can show them
for the below stream I've got out there?
http://hwcdn.net/e7a4h6n3/fls/10403-Backstop.smil
You could do this in a servlet. This is the general idea.
1 Take the xml file that is suppose to be change and create a DOM representation. The following creates a
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse("myfile.xml");
2 Then extract the request parameter names and there values and from the request name and value create a node. This node must match an element definition in the DTD of the xml that has been parsed into the DOM otherwise the xml will become invalid.
Enumeration enum = req.getParameterNames();
while(enum.hasMoreElements())
String reqName = (String)enum.nextElement();
String value = req.getParameter(reqName);
//Construct an element from these values
Element reqElement = document.createElement(reqName);
Node reqValue = document.createTextNode(value);
//Add the request value to the element
reqElement.appendChild(reqValue);
3 Then you will want to place this node in the correct part of the dom. I think you can search through the DOM for the correct node, and then add the node to the correct part of the tree e.g
node.appendChild(reqElement);
You will then have to revalidate the xml document.
4 You can then write out the change xml file to disk using the transform method of javax.xml.Transform.Transformer to output a DOM to a text file. See the JAXP tutorial section using XSLT to do this.
Similar Messages
-
ABAP Coding Help for Subtotal type output - SAP Query
I've created a SAP Query to display a stock overview by storage type using the table LQUA.
The output that I get is:
Material
Description
Plant
WHN
SLOC
Storage Type
Batch
GR Date
Available stock
2057
STRAWBERRIES
BP01
100
0088
200
0001081766
17.06.2014
225
2057
STRAWBERRIES
BP01
100
0088
200
0001081766
17.06.2014
720
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
1,000
I can get a subtotal for each Material, batch and GR date combination by using the ALV grid functionality.
This method adds too much clutter to my query and can't be easily manipulated in Excel afterwards for what I want. I want to condense the results down and just keep a cumulated available stock, e.g:
Material
Description
Plant
WHN
SLOC
Storage Type
Batch
GR Date
Available stock
2057
STRAWBERRIES
BP01
100
0088
200
0001081766
17.06.2014
945
2061
VOSTIZZA CURRANTS
BP01
100
0088
200
0001081272
17.06.2014
4,000
How can this be done?Hi,
Please try to use STATISTICS in your SAP Query. you can sort and add your value based on condiiton then it will be show you collect value in SQ01.
Please see the below documents for STATISTICS
https://help.sap.com/saphelp_erp2004/helpdata/en/d2/cb4263455611d189710000e8322d00/content.htm
Regards,
Prasenjit Mishra -
Hi, just wondering if anyone had any
recommendations with regards to a java
HTML->XML parser?
For an assignment i have i can either
code my own or integrate an already
existing one - even if i do end up
coding my own, it'd probably be useful
to see a working one as well.
Any suggestions as to which is the
best? By this i mean most efficient
and smallest.
Thanks,
CamSorry to be a pain, i dont suppose
you have some sample/test code that
uses Jtidy to covert html into xml?
The sourceforge documentation didn't
really help me :/
Thanks,
Cam -
I would rather not re-write the old IDE's I've been using for years but rather replace them with html/xml web style pages. Konqueror will locally execute binaries with a launcher script. Firefox, Chrome, re-Konq, WebPositive, and IE Explorer will not. If Firefox or SeaMonkey would execute my binaries I could easily replace the old IDE's and save myself and my clients a lot of time and money.
That isn't acceptable. I guess that if you don't want to tell me I'll go to Opera or Chrome and ask. I could simply disassemble the code. That takes a long time. 270 Clients some running software that was written as fare back as 1979. I know I'm small, but they have families and business to run. The cost of re-developing the IDE's is huge for small business. I had hoped you would help.
-
Urgent help for processing XML stream read from a JAR file
Hi, everyone,
Urgently need your help!
I am reading an XML config file from a jar file. It can print out the result well when I use the following code:
===============================================
InputStream is = getClass().getResourceAsStream("conf/config.xml");
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = br.readLine()) != null) {
System.out.println(line); // It works fine here, which means that the inputstream is correct
// process the XML stream I read from above
NodeIterator ni = processXPath("//grid/gridinfo", is);
Below is the processXPath() function I have written:
public static NodeIterator processXPath(String xpath, InputStream byteStream) throws Exception {
// Set up a DOM tree to query.
InputSource in = new InputSource(byteStream);
DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
dfactory.setNamespaceAware(true);
Document doc = dfactory.newDocumentBuilder().parse(in);
// Use the simple XPath API to select a nodeIterator.
System.out.println("Querying DOM using " + xpath);
NodeIterator ni = XPathAPI.selectNodeIterator(doc, xpath);
return ni;
It gives me so much errors:
org.xml.sax.SAXParseException: The root element is required in a well-formed doc
ument.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endO
fInput(XMLDocumentScanner.java:790)
at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocument
Scanner.java:418)
at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifi
cations(XMLValidator.java:712)
at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultE
ntityHandler.java:1031)
at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityRead
er.java:168)
at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:18
2)
at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:19
7)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
atch(XMLDocumentScanner.java:686)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
java:195)
at processXPath(Unknown Source)
Thank you very much!
Sincerely Yours
Davidorg.xml.sax.SAXParseException: The root element is required in a well-formed document.This often means that the parser can't find the document. You think it should be able to find the document because your test code could. However if your test code was not in the same package as your real (failing) code, your test is no good because getResourceAsStream("conf/config.xml") is looking for that file name relative to the package of the class that contains that line of code.
If your test code wasn't in any package, put a slash before the filename and see if that works. -
Is any HTML help for ABAP???
Is any HTML help for ABAP??? Are any HTML help downloads there in anywhere?? if anyone knows let me know.
Are you asking for help documentation on ABAP? If so....
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
Regards,
RIch Heilman -
Revision: 2093
Author: [email protected]
Date: 2008-06-16 12:57:18 -0700 (Mon, 16 Jun 2008)
Log Message:
fix air-config.xml so that there are no hard-coded values for the build number. This gets updated from the root build.xml by using a combination of a value from build.properties, release.version, and a value passed into build.xml build.number.
partial fix for sdk-15812
Ticket Links:
http://bugs.adobe.com/jira/browse/sdk-15812
Modified Paths:
flex/sdk/branches/3.0.x/frameworks/air-config.xmlI need to add just one more thing and that is on battery life. Last night I sat with the rMBP on my lap installing software, surfing the web, answering emails for close to 4 and 1/2 hours. At the point I took it back to the charger it still was showing a computed battery time remaining of 3.5 hours.
Today I had two VMs open and took the machine of the charger and sat outside with my dogs for about 30 minutes. During this time I was working in both VMs, editing and compiling code. My battery life estimate showed a good solid 4 hours.
This is roughly 6 times greater than what I had with my 2010 MBP and it too had a SSD. I am not sure why but this retina MBP just seems to not work as hard doing anything that caused my 2010 MBP to struggle.
While the battery life is certainly better than I expected it is clear that load can change that very rapidly. So I think I still need to visit clients with an external battery or charger in hand. But I don't think I will be quite so scared that my laptop will simply run out of power before I can even get it plugged in. -
Adobe Bridge CS6, Output to HTML Gallery coding issue.
Adobe Bridge CS6, Output to HTML Gallery coding issue.
I have created the html, JavaScript, css file using the output function in Bridge CS6, which nicely generates the coding, pages, folders and files. I can edit the html files such as gallery title, name, etc., in Dreamweaver CS6 just fine and preview them in a selected browser (both chrome and IE) and everything works fine.
When I ftp upload the files and directories into my hosting account (Go Daddy), the images do not show up. The file table appears but the thumbs images does not appear and when selected to preview the larger image, it does not appear either. I have not altered the file structure at all. Go Daddy says it is a coding issue, but I cannot fine any errors.
Have you seen this issue before? All Adobe help research have failed. Any suggestions??Have you asked on Go Daddy site for help in uploading Adobe Bridge script? Just to say it is coding is not helpful.
-
Where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?
In moving from XP to Windows 7, I opted for Thunderbird as email client in order to bypass Microsoft's hyper-intrusive Windows Live Mail (I used Outlook Express for years).
I have a very complicated email structure, and it's taken me weeks (seriously) to learn how to replicate it in TBird. Now I'm trying to customize TBird further, but none of the TBird articles/forum Q&A's/Google searches address my questions.
There is no live tech support for TBird, and I'm just about ready to leave it for good. However -- one last effort: where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?
Thanks.I am no expert, but I don't know of any authoritative reference as to what elements of HTML and CSS are supported in Thunderbird. However, as I believe you appreciate, it's more than just what Thunderbird supports, but one must also think about what is likely to work in other email clients. Keep it simple. Avoid ancient deprecated tags that other email clients may not support, and for similar reasons, avoid cutting edge technology. Remember that recipients using tablets or smartphones won't appreciate large fancy email documents.
The only thing ''guaranteed'' to work in email is plain text. ;-)
If you haven't already discovered it, the Stationery add-on is designed specifically to support OE stationery in Thunderbird. Your existing stationery may "just work" in this add-on. It makes switching between various stationery templates much easier, but I'm not confident that it will affect interpretation of your CSS or HTML coding.
Your code is at least clean and minimal. Most times my involvement with troublesome templates and signatures centres on the horrible bloat and mso custom code generated by Word or Outlook.
Having said that, you and I are mortal enemies, as I don't have much patience with what you aspire to achieve. I specifically don't like background images, nor being obliged to suffer other folks' bizarre choice of typefaces and colours (but your simple 12pt black Tahoma is quite inoffensive. ;-) ) I'm of an age where my tolerance and eyesight are easily offended.
Nonetheless, I'm intrigued by how to parse the tag for the background image, as it doesn't look like a legitimate pathname to a graphics file. Does the background image actually appear as required? -
Dynamic value help for a table field to fill two fields, how to?
Hi all gurus,
In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
DATA: lo_tabnode TYPE REF TO IF_WD_CONTEXT_NODE.
DATA: lo_tabnode_info TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
DATA: tab_value TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
wa_value TYPE WDR_CONTEXT_ATTR_VALUE.
lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
lo_tabnode_info = lo_tabnode->get_node_info( ).
wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
value_set = tab_value ).
The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
value : contains the value of the field
text : contains a description of the value
The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
So I'd like to do as follows:
- the user clicks on the search help for ZZ_PROLE_R3 field of the table;
- the above described value help appears;
- after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
Could anyone help me achieving such a behaviour?
Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
Thanks in advanceChris Paine wrote:
It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
- I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
Hi Chris and thanks for your help,
lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
[Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
[Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
[Result by now |http://imagebin.ca/view/3PaqdvE.html]
[Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
Chris Paine wrote:
However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
- retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
- RFC call to a custom method that extracts possible values for the specific backend;
- bind the ammissible values to the value help.
Chris Paine wrote:
I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
Thanks again for your help; additional info as well as code examples would be highly appreciated -
How to change the HTML/XML test data to test my_abap_proxy in SE80?
Hello,
I am trying to test my_abap_proxy in SE80 by usng a HTML/XML file of my desk top, the test data is as below
<LoadingDate>20110422</LoadingDate>
<DocumentDate>20110422</DocumentDate>
<SDDocumentCategory>G</SDDocumentCategory>
so on.......
Now, i want to change the Loading date in this test data, so, i tried after Loading file in Test Service Provider screen of my_abap_proxy of SE80, but i could not make change ANY data in this test data, pls. let me know how to change the data?
Thank youHello ABAP_SAP_ABAP ,
Youneed to select the option "generate template data " and then on the displaying template there you will see the option for editing in the top left corner toolbar.
Then after editing you can do a XMl syntax check and test your proxy.
Hope this helps.
Thanks,
Greetson -
Mime mapping in web.xml not working for csv/excel
I am using the weblogic 8.1 app server. I want to serve up some static content
from an "exploded" web application (dir structure instead of a war file). This
static content includes html files and csv files that cause the browser to give
an option to the user to open the file in excel or download to disk. I have inserted
the following mapping inside web.xml in the exploded directory structure...
<web-app>
<mime-mapping>
<extension>csv</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
</web-app>
I redeployed the "web application". When I try to access a csv file, instead of
giving me the save/open dialog, the browser displays the ASCII contents of the
csv in the browser like an HTML file. Am I missing a step? Is the xml above not
for the functionality that I am trying to implement here?
Thanks.Hi All:
Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
Could you please help and can you point me to any specific link.
Thanks & Regards
Sridhar Doki -
HTML & XML Code Stripped when loaded to web site
Hi,
I just loaded some page changes to my web site and the HTML & XML code was stripped when exported to my web site. I checked the site page code on the web site and it's absent.
Has anybody had this happen and/or can anybody help me fix this problem.
Thanks
MalcolmThank you for the response,
This is the link to the page that didn't work. I left it the way was after I downloaded it to the web site is: http://www.susystastebuds.com/Wedding/Wedding.html
I have had this web site running under Dreamweaver for over a year without a problem and It has only just started to do this.
Yahoo hosts my site and I do use the PUT action to post to the web.
I have some Flash items on all my pages and some of them have stopped working properly, which I think means that some of the Flash code is not there either.
I can go to Yahoo web page manger and upload each file and they page will work, but that is a very lengthy process.
Thank you for any more help you can provide.
Malcolm -
I created a Java3D java file. I compiled it in a .class file, and I added it in a .htm page (http://www.exacodes.be/BouncingBall.htm) and it doesn't work by my friends computers.
At school I was able to see in the console that the Geometry class wass missing ... Where can I find this class and how can I add it to my class ?
IS there an other method ?
Thanks.Welcome to the Sun forums.
fatidee wrote:
the interface for these programs is not displaying and the program is not running because there is no main( ) class in any of the programs..So add one!
The classes contains methods only..Is it possible for a program to run without a class??No.
Please fix that sticky '?' key. One '?' indicates a question, whereas 2 or more often indicates a bozo.
..or is there a way i should place a class on top of the other or on top of a main Project?That reads like nonsense to me. I cannot figure out what you are asking.
To make it easier on the reader, please add two spaces between each and every sentence, and make the first letter of every sentence upper case. The upper case letter makes it easier for people to quickly scan the text, looking for ways to help. You would not want to make it harder to help, would you?
pls i need help.Please make the effort to [write well|http://catb.org/~esr/faqs/smart-questions.html#writewell]. That word is 'please', not 'pls'.
..Below are the Java3D codes:When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags protect the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
Java 3D is not an API for newbies. Your questions strongly suggest to me that you are not very experienced with Java, so it might be best to leave Java 3D aside for a while as you get used to writing and debugging simpler Java programs. -
Hi Friends,
I am trying to create a Workflow for PO . I am maintaing the email ids of the approvers in a ztable since HR module is not implemented.
I copied the std BUS2012 using subtype option and created my own object and tried to create Method and attribute within that. I wrote a code in the attribute to get the approver email id from the ZTABLE( temporary purpose, i have hard coded values for selection criteria from ZTABLE) and delegated to BUS2012.
When I execute this ZBUS2012 IN SWO1, i am able to see the email id in my attribute.
Now I have copied the std workflow WS20000075 and attached a step called SEND EMAIL where I am trying to use the email id from the attribute. When I run the Workflow in SWDD transaction, i could see the emails getting trigerred to the email id tht the attribute is providing, but the same workflow is not seemed to be trigerred from ME21n transaction.
Note: If I change the email option to WF Initiator, then the same workflow is getting trigerred from ME21N transaction.
So I am not sure wht shuld I do so that the workflow is properly triggered when ME21N trsanction is invoked and sends email to the concerned person .
Please help me gurus...Its very very urgent...
<REMOVED BY MODERATOR>
Thanks
Ramya
Edited by: Alvaro Tejada Galindo on Apr 7, 2008 11:32 AMhi check these links for workflow..
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
regards,
venkat.
Maybe you are looking for
-
The header text in sales order are coming on DE (and has to be PT)
Hi SDN Team members, I have a strange issue. In the sale s order header the text by default it is coming as DE(German language) but it should be PT portugal language. This situation is in production system. The SAP log on language is PT. I have repli
-
I cant install ibooks author in my macbook air, because i have a 10.6.8 and ibooks author 2.0 requires 10.7.4. how can i get this os x update?
-
This message appears whenI am installing the copy of acrobat 7.0 pro downloaded from your website Download Acrobat 7 and CS2 products.
-
Unlock Security Code of the device
I have a problem with a Blackberry Torch. I use a security code for the device, now i have try 8 times the correct code acces, but the phone don't accept this code. How can i unlock the phone? Thx!
-
What's the syntax for Insert statement in Servlet?
I'm trying to insert record into table using servlet. Can you please show me the statement and syntax of how to use it?