The root element is required in a well-formed document.

While trying to parse the following xml file using jaxp.jar and xerces.jar I am getting the following exception
org.xml.sax.SAXParseException: The root element is required in a well-formed document.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:694)
at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1026)
at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
at org.apache.xerces.readers.AbstractCharReader.changeReaders(AbstractCharReader.java:150)
at org.apache.xerces.readers.AbstractCharReader.lookingAtChar(AbstractCharReader.java:217)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at XMLConverter.parse(XMLConverter.java:65)
at XMLConverter.parse(XMLConverter.java:116)
at XMLConverter.main(XMLConverter.java:282)
xml file
<?xml version="1.0"?>
<CustomerOrder>
<Customer>
<FirstName> Bob </FirstName>
<LastName> Hustead </LastName>
<CustId> abc.123 </CustId>
</Customer>
<OrderItems>
<OrderItem>
<Quantity> 1 </Quantity>
<ProductCode> 48.GH605A </ProductCode>
<Description> Pet Rock </Description>
<Price> 19.99 </Price>
</OrderItem>
<OrderItem>
<Quantity> 12 </Quantity>
<ProductCode> 47.9906Z </ProductCode>
<Description> Bazooka Bubble Gum </Description>
<Price> 0.33 </Price>
</OrderItem>
<OrderItem>
<Quantity> 2 </Quantity>
<ProductCode> 47.7879H </ProductCode>
<Description> Flourescent Orange Squirt Gun </Description>
<Price> 2.50 </Price>
</OrderItem>
</OrderItems>
</CustomerOrder>
Can anybody please help me.
Thanks in advance

Hi There,
I too am experiencing the same problem. I originally began with the problem described in
http://forum.java.sun.com/thread.jsp?forum=34&thread=138862
I removed the jaxp.jar and parser.jar from Tomcat's Lib folder and added the xerces.jar. This moved me on to the problem described in this thread.
Here is my XML file:
<?xml version="1.0"?>
<training_seminar>
     <student>
          <id>0001</id>
          <name>Joe Jones</name>
          <email>[email protected]</email>
          <passport level="4 course">yes</passport>
     </student>
     <student>
          <id>0031</id>
          <name>Patrick Thompson</name>
          <email>[email protected]</email>
          <passport>no</passport>
     </student>
</training_seminar>
And here is my XSL:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          version="1.0">
<xsl:template match="training_seminar">
<HTML><BODY>
     <TABLE BORDER="1">
     <TR>
          <TH>Student ID</TH>
          <TH>Name</TH>
          <TH>E-Mail</TH>
          <TH>Passport</TH>
     </TR>
     <xsl:for-each select="student">
          <TR>
               <TD> <xsl:value-of select="id"/></TD>
               <TD> <xsl:value-of select="name"/> </TD>
               <TD> <xsl:value-of select="email"/> </TD>
               <TD> <xsl:value-of select="passport"/> </TD>
          </TR>
     </xsl:for-each>
     </TABLE>
</BODY></HTML>
</xsl:template>
</xsl:stylesheet>
And I guess while I am at it, my classpath:
CLASSPATH=e:\java\jdk1.3.1\jre\lib\rt.jar;e:\jakarta-tomcat-3.2.3\lib\servlet.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xerces.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xalan
.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xsltc.jar;E:\Dev Tools\xalan-j_2_1_0\bin\xml
.jar;.
Any ideas is truly appreciated.
Thanks,
Gregg

Similar Messages

  • Xerces Sockets and The root element is required

    Hi,
    I have a problem with Xerces 1.4.3 saying "The root element is required in a well-formed document.". The story is as follows:
    When I read the XML from a file, it works OK.
    But when I send the file over a socket stream, and try to parse it in the client side, it gives this silly message.
    I am sure that there is no space before <?xml ... ?> and also the xml file is well formed.
    I guess someone can say Xerces 2 solves this problem but I am using JBuilder 7 and I could not install the new xerces over old one. If someone knows how to do this please let me know. (Copying the jars into jbuilder7/lib does not seems to work as the file names are different and it wont overwrite the old xerces parser)
    Any solution?
    Thanks,

    saving and parsing is working fine. hehe :)
    seems that the parser is somewhat going crazy.
    btw. I had written a class extending InputStream, so that it reads more than one file from a socket stream. But I have used it in this save and parse test and it worked so I dont think I have problems with that.
    In one forum here, I saw someone saying that changing the version solved his problems about this silly thing. I think I wil try this.
    Tankut

  • JDOMException: root element required in a well-formed document

    Ok, my XML file looks something like this:
    <?xml version="1.0" ?>
    <this>
    <that></that>
    </this>
    ... and my Java code to build a JDOM object model from the XML file (Xerces-parsed) looks somethings like this:
    Document theDoc;
    SAXBuilder theBuilder;
    InputSource = theSource;
    theBuilder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    theDoc = builder.build(theSource);
    Now, when I compile and run, I get a JDOMException that looks something like this:
    org.jdom.JDOMException: Error on line 1 of document : The root element is required in a well-formed document.
    What's up with that?

    (1) Thanks for taking the time. I'm not sure how I could make more than one root element. All I know is, in my XML file, the element tag that comes right after the <? xml version="1.0" ?> line has the same name as the very last tag in the file (with a "/" added before the name). There are no other elements in the file with that name, so I figure that makes it (ie. <this></this>) the root element of my document. N'est pas?
    (2) I have some more info since I originally posted:
    I added the following line:
    "System.err.println(e.getCause());"
    ... to the catch() area that throws the JDOMException - like follows:
    try {
    theCurrentDocument = builder.build( docFile ); // builder is an object created with <i>builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");</i>
    docType_CurrentDoc = theCurrentDocument.getDocType();
    root_CurrentDoc = theCurrentDocument.getRootElement();
    catch( org.jdom.JDOMException e ) {
    System.err.println(e); // Caused the original JDOMException from my first post
    System.err.println(e.getCause()); // Line I added since my first post
    The amended code above produced an extra line of output to the console:
    "java.security.AccessControlException: access denied (java.io.FilePermission \myfile.xml read)"
    Which I take to mean that I have to sign my applet. Is there any way around doing that? Because I don't want to if I don't have to.

  • OdiInvokeWebService invoke the Async ws error!! not a well-formed document

    Hello, Everybody, I need you help.
    I use the OdiInvokeWebService utility to invoke the Async web service in the ODI Design. the Async service can run successful. but the ODI has the error:The root element is required in a well-formed document. If I use the OdiInvokeWebService to invoke the sync web service. It is ok, not error happens. so i guess that maybe beacause the Async has not the reponse message. but I don't know how to resolve the problem. PLZ help. thanks.
    com.sunopsis.wsinvocation.SnpsWSInvocationException: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
         at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
         at com.sunopsis.graphical.wsclient.f.b(f.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Unknown Source)
    Caused by: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
         ... 8 more
    Caused by: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
         at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
         at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
         at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
         at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
         at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
         at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
         at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
         at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:182)
         at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:197)
         at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         ... 15 more
    Caused by:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: The root element is required in a well-formed document.
         at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
         at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
         at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
         at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
         at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
         at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
         at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
         at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:182)
         at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:197)
         at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
         at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
         at com.sunopsis.graphical.wsclient.f.b(f.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Unknown Source)
         {http://xml.apache.org/axis/}hostname:IBM-3D5B978A816
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
         at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
         at com.sunopsis.graphical.wsclient.f.b(f.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Unknown Source)
    Caused by: org.xml.sax.SAXParseException: The root element is required in a well-formed document.
         at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
         at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
         at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endOfInput(XMLDocumentScanner.java:790)
         at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
         at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:712)
         at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1031)
         at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
         at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:182)
         at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:197)
         at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:686)
         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         ... 15 more

    Hi, Aprendiz, Thanks for you apply. Do you meet this problem. If I use the OdiInvokeWebService to Invoke the sync webservice. It has not problem. But the Async webservice has the error log. Now I must use OdiInvokeWebService.Thank you.
    Allen

  • The markup in the document preceding the root element must be well-formed

    Hi,
    Each time I add some library, something serious happens to my NetBeans5.5 and Tomcat 5.5.17. This time I added jsf-facelets.jar and now nothing is being deployed. I m getting following exception
    javax.servlet.ServletException: Error Parsing /Dept.jsp: Error Traced[line: 1] The markup in the document preceding the root element must be well-formed.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
    Is there any special procedure to follow to add libraries?
    Plz help.

    Facelets is XHTML. XHTML is XML-HTML. XML require strict well-formness of the tags. I.e. every tag should be correctly nested and closed.
    I would say, read the Facelets Developer Documentation: http://www.google.com/search?q=facelets+developer+documentation

  • The markup in the document following the root element must be well-formed.

    I have my XML root element that looks like this:
    <DataResponseOfListOfSite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www
    .w3.org/2001/XMLSchema" xmlns="http://xxxxxx/webservices/sites/">
    and I get the error "The markup in the document following the root element must be well-formed."
    If I use this it works fine:
    <DataResponseOfListOfSite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www
    .w3.org/2001/XMLSchema" xmlns:xsi="http://xxxxxx/webservices/sites/">
    Does anyone know why I have to have the xmlns:xsi="" instead of just xmlns=""
    If I paste this XML into any validator, it says that its good, so I dont know why Flex is complaining about it.

    In the first one you have two namespaces both with the same prefix.
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xmlns:xsi="http://xxxxxx/webservices/sites/"
    Thanks,
    Gaurav Jain
    Flex SDK Team
    http://www.gauravj.com/blog

  • TLD Error:The markup in the document preceding the root element must...

    Hello, I am new to using the Tag Libraries, i am getting the following error which seems to be in my treeTag.tld file, I am pasting the error message and the treeTag.tld at the bottom of this message. Any help is much appreciated.
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: XML parsing error on file /TreeTag/treeTag.tld: (line 5, col 1): The markup in the document preceding the root element must be well-formed.
         at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:218)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
         at ***************************************************
    Here is my treeTag.tld file
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    - <taglib>
         <tlibversion>1.1</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>Tree taglib</shortname>
         <uri>http://www.servletsuite.com/servlets/treetag</uri>
         <info>Tree tags</info>
         - <tag>
              <name>createTree</name>
              <tagclass>com.cj.tree.createTree</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Creates HTML-based tree view</info>
         </tag>
         - <tag>
              <name>addNode</name>
              <tagclass>com.cj.tree.addNode</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>adds node</info>
              - <attribute>
                   <name>code</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
         </tag>
    </taglib>
    Regards,
    Navin Pathuru.

    You might make sure - if you havent already - that you are using the must up to date jsp version

  • Real time transaction response - unable to locate the root element

    Hi There
    Has anyone integrated webMethods with Data Services 3.2 for real time transactions?
    We are trying to create a real time dataflow, initiated by webMethods.  We are sending the request to the Access Server which runs our
    real time dataflow and does process the request.  However, our return response is null.  No data in the response back to webMethods.  We have
    tested this in soapUI, and our transaction does work.  We get the correct response back. 
    So my question is has any experienced this issue with webMethods?  Any suggestions or ideas?
    Here is the error
    ===========================================
    Path name: 
         PortType: Real-time_Services
         Operation: Realtime_address_cleanse
    WSDL code:  S-9043
    [ISS.0092.9043] Schema Error: 1
         pathName: null
         errorCode: CONV-004
         errorMessage: [ISC.0082.9104] DataOut - unable to locate the root element
         identifier: null
    ===========================================
    ps- xmlspy does not work as well
    Please let me know
    Thanks
    Kurt

    The problem was the generated test SOAP message from Netbeans. When built, the interface had more levels than described below. I've also had similar issues caused by bad namespaces - either not defined properly or not picking up the default namespace.

  • E4X: What happens to the root element?

    I'm working with XML using the E4X notation. I'm used to the "old school" XML APIs that use DOM and I'm a bit confused.
    For example, let's consider the following XML
    <mx:XML id="myXML" >
      <top>
        <sub1 id="uno">
          <sub2>hello</sub2>
          <sub3>world</sub3>
        </sub1>
        <sub1 id="duo">
          <sub2>ok</sub2>
          <sub3>ko</sub3>
        </sub1>
      </top>
    </mx:XML>
    In my code I use the following traces. This is done with the De MonsterDebugger, but all others should work the same way. I have casted the traces to String only to make it easier to ask this question (no need post images)
    MonsterDebugger.trace(this, "myXML:" + myXML);
    MonsterDebugger.trace(this, "myXML.sub1: " + myXML.sub1);
    MonsterDebugger.trace(this, "myXML.sub1.sub2: " + myXML.sub1.sub2);
    What I get as output is
    (String) = myXML:<top>
      <sub1 id="uno">
        <sub2>hello</sub2>
        <sub3>world</sub3>
      </sub1>
      <sub1 id="duo">
        <sub2>ok</sub2>
        <sub3>ko</sub3>
      </sub1>
    </top>
    (String) = myXML.sub1: <sub1 id="uno">
      <sub2>hello</sub2>
      <sub3>world</sub3>
    </sub1>
    <sub1 id="duo">
      <sub2>ok</sub2>
      <sub3>ko</sub3>
    </sub1>
    (String) = myXML.sub1.sub2: <sub2>hello</sub2>
    <sub2>ok</sub2>
    All is fine above and this was a bit long abstract for my question. The question is what happens to the root element, in this case <top>? I was trying to access the data with the following notation
    myXML.top.sub1; // etc
    I spent quite a lot of time trying to get it to work, until I discovered that the root element is not used. Can anyone explain this?
    Or, I guess the simple explanation is that the root node is ignored and the sub nodes are created as properties of the object. The question also could be stated as: Why isn't this documented in the Flex API Reference?
    Thanks.
    P.S. I found this article on common E4X pitfalls which also has other interesting topics when working with E4X.

    its gone
    downgrading would kill the phone..

  • How can i change the ROOT ELEMENT name in my ADOBE Form

    Hello All,
    I need to change "data" the Root Element default name to another name.
    Is this possible? How do i do this?
    Thank you all in advance,
    Eran

    Hello Chintan and Otto,
    thank you for your replies...
    Chintan: There is Adobe livecycle designer CE and its a stand alone application :[ designer CE2|http://www.adobe.com/products/livecycle/]
    Otto: I know i can send the xml back and change it in my abap program but i'm talking about stand alone form in a computer with no sap on it.
    The user will fill it and submit it ...
    Thank you all in advance,
    Eran

  • Rename the root element  in a XMLTYPE field

    Hello, I have to rename the root element of an XMLTYPE like :
    Change :
    <Address>
    <Name>Dupont</Name>
    <Street>Av de la gare</Street>
    </Address>
    To :
    <CustomerAddress>
    <Name>Dupont</Name>
    <Street>Av de la gare</Street>
    </CustomerAddress>
    One solution will be to use the EXTRACT (a.xml, '/*/*') AS "CustomerAddress"
    I am just afraid about performance !!!
    Anyone has an advice
    Best Regards

    Pl go through this doc/Title
    XML Schema Evolution
    This chapter describes how you can update your XML schema after you have registered it with Oracle XML DB. XML schema evolution is the process of updating your registered XML schema and let me know if this helps.

  • Start of the root element expected.

    Hello Gurus,
    I moved all my project contents from one root directory to another, after seting up everything. It gives compile time error on adf-faces-config.xml and adf-faces-skins.xml.
    The error:
    XML-20108 - Start of the root element expected.
    I have no idea what could have originated this error and how to fix it. Can any one help me?
    Thank you.
    Ruchir

    I built the new project structure from scratch. i.e. created new application, then added a web project, then added all css file from old locations, then, created new xml documents and renamed it to adf-config-faces.xml and adf-faces-skins.xml and manually copied from these config xml documents from old location to newer one.
    And then at last, copied the .jspx page and when compiling that, control moves to adf-config-faces.xml file and gives the error.
    Thanks,
    Ruchir

  • Error: "LPX-00240: element-start tag is not well formed"

    Hello all,
    i'm getting this error parsing a XML file:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00240: element-start tag is not well formed*
    Error at line 18
    What could be the issue in this case ???
    i'm running out of tryings and options for this solution....
    thank you all
    ---------------------- XML FILE -----------------------------
    <?xml version="1.0" encoding="iso-8859-1"?>
    <FormList>
         <Form name="SERVIDOES_REGLA_BASE" table="IVBAM.ANA_SERV_PEDIDOSPARECER" idfield="ID">
              <FormField name="ID" label="ID" datatype="LONG" type="TEXTFIELD" readonly="true" visible="false" mandatory="false" saveable="true" lovemtpy="false" multiselect="false"/>
         </Form>
         <Form name="PEDIDO_PARECER_UPDATE" table="IVBAM.ANA_SERV_PEDIDOPARECER" idfield="ID" help="sdfsf sdf sdf 4 43 43 3 4534 54 " usesession="true" geometryfield="GEOMETRY">
              <FormAction name="FORM_ACTION_01" function="2" help="true"><param name="CONFIRM" value="YES_NO" title="confirmar ??????"/>
                   <param name="LALLALA" value="dddd" title="ddddd"/>
              </FormAction>
    line 18:     <FormField name="NUM_ENTRADA" label="Número de entrada" datatype="STRING" type="TEXTFIELD" visible="false" mandatory="false" saveable="false" lov="Sim,Não" lovemtpy="false" maxlength="50" multiselect="false" />
         </Form>
    </FormList>
    -------------------------------------------------------------------

    <?xml version="1.0" encoding="iso-8859-1"?>
    <FormList>
    <Form name="SERVIDOES_REGLA_BASE" table="IVBAM.ANA_SERV_PEDIDOSPARECER" idfield="ID">
    <FormField name="ID" label="ID" datatype="LONG" type="TEXTFIELD" readonly="true" visible="false" mandatory="false" saveable="true" lovemtpy="false" multiselect="false"/>
    </Form>
    <Form name="PEDIDO_PARECER_UPDATE" table="IVBAM.ANA_SERV_PEDIDOPARECER" idfield="ID" help="sdfsf sdf sdf 4 43 43 3 4534 54 " usesession="true" geometryfield="GEOMETRY">
    <FormAction name="FORM_ACTION_01" function="2" help="true"><param name="CONFIRM" value="YES_NO" title="confirmar ??????"/>
    <param name="LALLALA" value="dddd" title="ddddd"/>
    </FormAction>
    line 18: <FormField name="NUM_ENTRADA" label="Número de entrada" datatype="STRING" type="TEXTFIELD" visible="false" mandatory="false" saveable="false" lov="Sim,Não" lovemtpy="false" maxlength="50" multiselect="false" />
    </Form>
    </FormList>

  • Since installing the latest update, Firefox will not load; it gives me the following error -- XML Parsing Error: not well formed.

    since installing the latest update, Firefox first operated with some errors but now will not load at all; it gives me the following error --
    XML Parsing Error: not well formed
    locations chrome://browser/content/browser.xml
    Line Number 1191, column 20:
    utton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"-------------------
    please note that the words "utton ID" are exactly as the error message gives it; and at the end of the message there are exactly 19 hyphens.
    I don't know why this faulty code is referencing things to do with "chrome"... the Chrome browser is not installed on this PC or anywhere on our network.
    Also, this is not the first problem I had after clicking Firefox's prompt for the latest update. Before Firefox retreated into this error message, it was loading but running with some faults...
    1. the bookmark symbol was not appearing on the right hand side of the URL line, so I had always to click on "bookmark this page", after which the bookmark symbol did appear; however I don't know if the bookmarking function worked properly.
    2. the back and forward buttons were not highlighted, as if I had not come from a previous page; so once I clicked on a link to a new page I could not go back to where I came from because Fiefox thought I hadn't come from anywhere.
    3. there may have been other errors, but I did not find them.
    How do I reinstate my Firefox program to work properly please? do I have to download the latest version and reinstal? if so, do I have to remove the old version first? or is there a fix?
    Even to write this message I have been forced to use (yuk -- I don't like to say this!!!) Internet Explorer. So please -- I need help urgently.
    Thanks,
    NOEL

    Some how I solved my problem by opening a user account and downloading Firefox 4.0 beta and installing it, I did try it, worked fine, so I did close the user account and did go back to my own account(switched user), the main page that I had problem with Firefox which would not open, I dabble click on Firefox it start working again!! I hope that solves your problem too.
    firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none

  • Namespace Prefix in the Root Element of the variable

    Hi Gurus,
    We need to call a webservice which requires a namespace prefix at the root elemnt of the xml payload. But as we know that the default behaviour of BPEL removes the prefix so the invoke activity is failing and so we are stuck.
    I found this thread Namespace prefix in Root element missing during variable assignment but i feel the solution specified in this link works only in SOA 10g environment Please let us know what needs to be done?
    Appreciate a prompt response.
    NOTE: SOA Suite Version- 11.1.1.4
    Regards
    Ayush

    Hi All,
    we are also facing the same issue, Please provide the solution if anyone knows. We are also using the SOA Suite 11g Version.

Maybe you are looking for

  • While loop and data acquisition timing worries

    Hello everyone,  I apologize in advance if this is a silly question, but I could not find the answer around here.  I have made a VI to record continuously from 64 analog channels at a 5kHz sampling rate. I then stream this data to a tdms file. The da

  • Profit Center picking wrongly during billling

    Hi SAP Experts, We have one issue where wrong profit center is getting picked during the time of billing. The SD flow is Customer Contract>Exchange customer order>Purchase Order>Billing Invoice> Accounting Doc. Till Purchase Order the profit center i

  • I dont get it

    when I compile my program, the only error that comes up is: Not a statement pointing to the last statement in the for loop for(int i = 0 ; i++ ; i < labels.length) labels is an array of JLabels. any ideas?

  • How to define partner functions in ECC 6.0

    Hi All, I'm using ECC 6.0. I tried the IMG path "Sales and Distribution -> Basic Functions -> Partner Determination". My document says I can find "Define Partner Functions" here. But actually there's only a "Set Up Partner Determination" under this f

  • [Help]Grid

    Hello experts, I have a question regarding in Grid. I created a grid in Screen painter and now I want to get the first row value of the grid. I already populate the grid with JDT1 in journal voucher. Thank you,