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

Similar Messages

  • 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

  • Xsl:include msg - document following root element must be well-formed

    I am getting the following message when I try to execute a transaction that takes an XML file & transforms it.  The message is:
    "[ERROR]: XSLTransform error: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed."
    The transaction loads an xml input file, and then transforms it.  The transformation stylesheet does some formatting to the xml.  The stylesheet has an include in it that adds an element to the output. 
    Input XML data
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowset>
        <Row>
            <ItemNo>00000000001884304</ItemNo>
            <ItemDesc>Test Item Description</ItemDesc>
        </Row>
    </Rowset>
    Expected output:
    <?xml version="1.0" encoding="UTF-8"?>
    <Item>
        <Items ItemDesc="Test Item Description" RawItemNo="00000000001884304" dotties="...................." editedItemNo="1884304" supernova="**********" />
    </Item>
    If I point the <xsl:include to a web folder on a test box, it will read & translate the data into the expected output.  However, when I have both the initial stylesheet and the include stylesheet in the same Web folder in MII, I get the above message.  If the URL is any different, it generates an IO error. 
    The initial stylesheet is
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output method="xml" />
    <xsl:include href="http://myserver:myport/XMII/CM/foldername/testcalls_2.xsl"/>
    <xsl:variable name="wrkitem" select="//ItemNo"/>
    <xsl:template match="Row">
         <xsl:call-template name="RowEdit"/>
    </xsl:template>
    <xsl:template name="RowEdit" match="Row">
          <Item>
         <xsl:element name="Items" use-attribute-sets="RowChange">
               </xsl:element>
           </Item>
    </xsl:template>
    <xsl:attribute-set name="RowChange">
         <xsl:attribute name="RawItemNo">
               <xsl:value-of select="//ItemNo"/>
         </xsl:attribute>
         <xsl:attribute name="editedItemNo">
              <xsl:call-template name="removeLeadingZeros">
                   <xsl:with-param name="originalString" select="$wrkitem"/>
              </xsl:call-template>
         </xsl:attribute>
         <xsl:attribute name="ItemDesc">
                   <xsl:value-of select="//ItemDesc"/>
         </xsl:attribute>
         <xsl:attribute name="dotties">
              <xsl:call-template name="dots">
                         <xsl:with-param name="count" select="20"/>
                  </xsl:call-template>
         </xsl:attribute>
         <xsl:attribute name="supernova">
              <xsl:call-template name="stars">
              </xsl:call-template>
         </xsl:attribute>
    </xsl:attribute-set>
      <xsl:template name="dots">
            <xsl:param name="count" select="1"/>
          <xsl:if test="$count > 0">
            <xsl:text>.</xsl:text>
            <xsl:call-template name="dots">
              <xsl:with-param name="count" select="$count - 1"/>
            </xsl:call-template>
          </xsl:if>
      </xsl:template>
    <xsl:template name="removeLeadingZeros"> 
      <xsl:param name="originalString"/> 
      <xsl:choose> 
        <xsl:when test="starts-with($originalString,'0')"> 
          <xsl:call-template name="removeLeadingZeros"> 
            <xsl:with-param name="originalString"> 
              <xsl:value-of select="substring-after($originalString,'0' )"/> 
            </xsl:with-param> 
          </xsl:call-template> 
        </xsl:when> 
        <xsl:otherwise> 
          <xsl:value-of select="$originalString"/>
        </xsl:otherwise> 
      </xsl:choose> 
    </xsl:template>
    </xsl:stylesheet>
    and the stylesheet being called by the xsl:include -
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template name="stars" match="Item">
    <Stars>
         <xsl:element name="BBB">
              <xsl:text>**********</xsl:text>
         </xsl:element>
    </Stars>
    </xsl:template>
    </xsl:stylesheet>
    FYI, both of the stylesheets above are in the same folder on the WEB tab in MII.  The full name (properties tab) is:
    foldername/WEB/Test/stylesheet.xsl
    Also, I am able to browse & view each of them in IE.  The url they are at is:
    http://server:port/XMII/CM/foldername/test/stylesheet.xsl
    Both stylesheets appear to be well-formed.
    If I use any other syntax other than the full URL, the error it generates is an IO Exception on the included stylesheet.  The markup message above makes me believe that it is at least attempting to handle the included stylesheet. 
    In the Link editor of the xsl Transformation Incoming tab, there are two assignments being made.
    1.  Transform property
    object= xsl_transformation_0
    property=Transform
    expression="db://foldername/WEB/Test/stylesheet.xsl" (this is the initial, not included stylesheet)
    Link type=Assign Value
    2.  Input property
    object= xsl_transformation_0
    property=Input
    Expression=testitems_0.XmlContent
    Link type=Assign XML
    Running MII 12.0
    Thoughts?  Any input appreciated.

    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

  • Warnings about root element must be well-formed

    Hey, I just downloaded and am getting running with FlexMetrics.  I'm running this from the ant taskdef.  When I run it, I get what looks to be valid and fine XML reports generated, but I also get a bunch of warnings, each of which reads:
    [flex-metrics] Oct 25, 2010 11:54:00 AM de.bokelberg.flex.parser.AS3Scanner$XMLVerifier verify [flex-metrics] WARNING: The markup in the document preceding the root element must be well-formed. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Error HandlerWrapper.java:195) [flex-metrics] com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrappe r.java:174) [flex-metrics] com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav a:388)
    The taskdef element is pretty standard:
    <taskdef name="flex-metrics" classname="com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask" classpath="${flexpmd.libs}/flex-pmd-metrics-ant-task-${flexpmd.version}.jar">
        <classpath>
            <pathelement location="${flexpmd.libs}/flex-pmd-files-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/flex-pmd-metrics-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/as3-plugin-utils-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/as3-parser-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/as3-parser-api-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/commons-lang-2.4.jar" />
            <pathelement location="${flexpmd.libs}/flex-pmd-ruleset-api-${flexpmd.version}.jar" />
            <pathelement location="${flexpmd.libs}/pmd-4.2.5.jar" />
            <pathelement location="${flexpmd.libs}/dom4j-1.6.1.jar"/>
        </classpath>
    </taskdef>
    References to this look like this:
    <flex-metrics sourcedirectory="${home.project}\src" outputfile="${deploy.dir}/metrics/project.javancss.xml" />
    So I'm not doing anything weird or crazy with it.  I get that error message repeated 42 times.  I can't really seem to correlate that number with anything in my project, i.e. we've got more than 42 mxml files (59 of them), we've got more than 42 AS3 files, etc.  So I'm not really sure what it's hitting 42 times to come up with that error.
    Any ideas on what this might indicate would be greatly appreciated!

    My working theory is that it chokes on instances of the Vector Object (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Vector.html) but I have yet to verify that conclusively.

  • 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

  • The markup must be well-formed.

    Hi,
    I am beginer in SAX and Java.
    I am tring to read Information from not well formed XML File.
    When I try to use SAX or DOM Parser then I have this error:
    The markup in the document following the root element must be well-formed.
    My XML File looks like this:
    <format type="filename" t="13241">0;W650;004;AG-Erzgeb</format>
    <format type="driver" t="123412">001;023</format>
    Can I force SAX or DOM to parse not well-formed XML files?
    Thank you for your help.
    Haythem
    Edited by: Haythem on Mar 23, 2010 3:52 AM

    Thank you it helps.
    I used ByteArrayInputStream and InputStream to add <root>... </root> for the file on the fly and it is well formed now.
    String rootB ="<wrapper>";
         String rootE= "</wrapper>";
         Vector<InputStream> v = new Vector<InputStream>();
         byte[] bArray = rootB.getBytes();
         byte[] eArray = rootE.getBytes();
         ByteArrayInputStream baisB = new ByteArrayInputStream(bArray);
         ByteArrayInputStream baisE = new ByteArrayInputStream(eArray);
         InputStream fisFile = new FileInputStream(file);
         v.addElement( baisB );
         v.addElement( fisFile );
         v.addElement( baisE );
         InputStream combined = new SequenceInputStream(v.elements());
            Document doc = docBuilder.parse (combined);....
    Edited by: Haythem on Mar 25, 2010 4:15 AM
    Edited by: Haythem on Mar 25, 2010 4:17 AM
    Edited by: Haythem on Mar 25, 2010 4:18 AM

  • Exception:"Decrease the number of char between the beginning of the document and its root element"

    I'm now using a javabean in my jsp page to parse xml;when my xml file's size is
    about 10k,it just work fine;when my xml file's size became 50k,it throws the followng
    Exception:
    Failed to open xml document,Failed to retrieve Public id or system id from the
    document. Decrease the number of char between the beginning of the document and
    its root element. But when I run this javabean in JBuild ,it works fine no matter
    how big the xml file becomes;
    Why? the error message is in the attachment.

    The prologue must be included at the top of the document, followed by the root
              element.
              joden2000 wrote:
              > what does this exception mean:decrease the number of char between the beginning
              > of the document and its root element? When my xml file is about 10k,it works
              > just fine,when it becomes 50k ,the exception show.How can I deal with this?
              

  • Table having the link between  Clearing document and the Invoice document

    pls can someone tell me the table that having the relationship between clearing document and the Invoice document.
    Thanx .

    Hi,
    You can try with the following tables: BSE_CLR, BSEG, BSAD, BSAK.
    Regards,
    Svetlin

  • 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

  • Whenever i click on word or powerpoint it always brings up a recent document. I want to have the option like when i had first opened the app that gives the options of new document and the variety of different documents. how do i get it back to that?

    whenever i click on word or powerpoint it always brings up a recent document. I want to have the option like when i had first opened the app that gives the options of new document and the variety of different documents. how do i get it back to that?

    tbreezy wrote:
    THANK U!! K ONE MORE QUICK QUESTION. HOW DO I GET RID OF THAT POP UP BOX?
    Not sure, try googling "the global template normal.dotm is already open as an add-in program"

  • How do i get my team to all see the same say, ID, document using the cloud?

    how do i get my team to all see the same say, ID, document using the cloud?

    Adobe Max was a smoke and mirror show and they demonstrated "Folder Sharing" so we bought into it. Myself and 7 of my clients. After the Max show they turned it off like nobody would notice. Two weeks after they stopped the folder sharing feature they put a little notice that they had did this. Nice how they treat their loyal customers. Every month they charged us an extra $20 over a single account without the folder sharing. What good is "team work" if you can't share a folder of files. Sharing a single file at a time is a waste of time.
    After a year still no folder sharing but the same old story of "soon". Adobe is using the extra money they are "stealing" from paying clients to pay for this development. We are being forced to pay the extra money again for another year as there is no way to downgrade to a single user account. Adobe likes to use this as an excuse to continue to rob and steal from loyal user that have no choice but to deal with these crooks.
    My only suggestion is for new users not to buy the team account package. There marketing material is filled with misleading statements that gives the potential new customer the impression that they can work in teams, as if a team can  work sharing single files. This is a sign that Adobe is about the cash grab and not about the quality of software and the end user experience.

  • How to push the two pdf opened documents in the array?

    Hi all,
    I need to store the two pdf opened documents in the array value(i.e array(0), array(1)) and then get that array value one by one, and print it through AVAlertNote(). Kindly advise me the possiblities and solution.
    Thanks for looking into this.

    What do you mean you want to put the "pdf open documents" in an array?  You mean the PDDoc structures?  Just use a std::vector<> or the like.
    And what did you want to print?
    If you are trying to debug, why not use the source debugger for your platform?

  • Clone tool has stopped working properly, the sample area doesn't follow the target area?

    Clone tool has stopped working properly, the sample area doesn't follow the target area?

    I understand. I was very unhappy with Adobe when my PSE 11 stoped working properly. I had it for only about 6-7months before I updated my software on my imac and it all went downhill.... Then to add to that my Adobe account was hacked. Adobe never informed me of this situation. I heard through a friend that I should check to see if I was one of the very many who's online accounts were tampered with. I had to reset every single password and username for nearly 30 online accounts to avoid any further tampering with the hackers. And all Adobe suggested was for me to pay for an upgrade to PSE 12 which I did but wasnt very impressed to say the least ( i was on an online chat with them for over 2hours trying to get my PSE 11 issues solved to no avail). Then this sluggish performance starts happening again using the new version PSE 12?. I'm going to stay clear of adobe if I have the option to purchase similiar software from another supplier. I would and will encourage anyone else who has problems with there software to do the same. Older versions should work perfectly fine for ages. I wonder If Adobe is trying to get us all to pay for the monthly subscription option(s) to avoid having issues with older versions of their software. As the subscription option keeps you ontop of all the latest versions... I wouldn't put it past them.
    All the best returned,
    Ray

  • Bookmarks are saved yet after using the page icon is still displayed instead of the actual icon for the website. I have followed the directions for "Favicons do not display".

    My bookmarks, on a HP Pavilion dv-7-2273cl notebook, are saved yet the page icon is still displayed after using the bookmark instead of the actual icon for the website. I have followed the directions for "Favicons do not display" without any success. This problem is not experienced on my much older Gateway desktop.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_places-database-file

  • Will Word 2016 have the option to save documents as the Word 97-2003 file format like Word 2013 does?

    This is talking about if Word 2016 will have the option to save documents as the Word 97-2003 format like Word 2013 does or not.

    Hi Carolyn,
    It sounds as though the filename extension association has become confused on your system. It's odd that it happened after conversion, but it should be easy to fix nonetheless.
    Here are some instructions for changing file associations on both Mac OS and Windows:
    Change File Associations in Mac OS X - OS X Daily
    Change which programs Windows uses by default ... (Windows 7)
    Change which programs Windows uses by default - Windows Help (Windows Vista)
    Please let us know if you have additional questions.
    Best,
    Sara

Maybe you are looking for

  • Only works in safe mode

    Help....I am only a novice mac user (so I need help in the most layman terms possible).  Seems all my Apple products are going kaput; first one being my macbook (early 2008 model).  Looks like my disk drive isnt working correctly; I put in a new hard

  • New ExportPDF subscription doesn't work

    I paid my $19.95 today for a year of ExportPDF. I received a confirmation email with a link that said click here to get started. But when I click here to get started and signed in, I get a window that says my trial has expired and I should by the pro

  • Word Import  - Hyperlinks with #

    All: I just downloaded and installed the trial version of RH 9.0. I'm trying to import a word document into RH HTML project. The word document has lot of hyperlinks and 90% of the hyperlinks contains # in it. (For eg: https://www.something.com/index.

  • Where can I buy this Toshiba Notebook Docking Station/USB hub?

    Where can I buy this Product in Denmark or in a webshop in Denmark/Europa ? *Toshiba Notebook Docking Station/USB hub* Product link: http://www.ubergizmo.com/15/archives/2006/07/toshiba_notebook_docking_stationusb_hub.html THANKS. Danish: Hvor kan je

  • Is CFMail and Mail (CFScript) the same?

    Is CFMail and Mail (CFScript) the same.... Reason I ask, is we are having a tonne of email problems in our application.  A person on my team has indicated that cfmail is more reliable and all the cfsript, "mail" implementations remain largely undeliv