Error in XML parsing. Im i missing something obvious.

I am new to XML and i cant seem to be able to iterate through the xml response.
Here is the relevant code
     QName qName = new QName( "http://www.ros.ie/schemas/customs/collectresponse/v1", "MailboxCollectResponse" );
                          //create the parser
                          XMLStreamReader parser = response.getPullParser(qName);                 
                          StAXOMBuilder builder = new StAXOMBuilder(parser);
                          OMElement documentElement = builder.getDocumentElement();
                          //dump the out put to console with caching
                          System.out.println(documentElement.toStringWithConsume());                             
                          //QName elementQName = new QName("http://www.ros.ie/schemas/customs/collectresponse/v1","MailboxItem");
                          QName elementQName = new QName("http://www.ros.ie/schemas/customs/collectresponse/v1","MailboxItemList");
                          Iterator infoIter =
                              documentElement.getChildrenWithName(elementQName);
                              while (infoIter.hasNext()) {
                                  OMElement element = (OMElement) infoIter.next();
                                  System.out.println("Matching Element Name = " +
                                      element.getFirstElement().getText());
                                  }  The println statement is producing this output which i think is correct.
<MailboxItemList xmlns="http://www.ros.ie/schemas/customs/collectresponse/v1" moremessages="false" messagecount="2"><MailboxItem xmlns="http://www.ros.ie/schemas/customs/collectresponse/v1"><ns2:IEMailboxId xmlns:ns2="http://www.ros.ie/schemas/customs/customstypes/v1">Mailboxid123</ns2:IEMailboxId><ns2:IETransactionId xmlns:ns2="http://www.ros.ie/schemas/customs/customstypes/v1">Transaction123</ns2:IETransactionId><Message xmlns="http://www.ros.ie/schemas/customs/collectresponse/v1"><x:root xmlns:x="bar" xmlns:y="bar1"><x:foo xmlns:x="bar"><y:yuck xmlns:y="bar1">blah</y:yuck></x:foo></x:root></Message>But when it gets to the Iterator an exception is raised.
org.apache.axiom.om.OMException: Parser has already reached end of the document. No siblings found
     at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:267)
     at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:69)
     at com.alp.ccs21.soapwg.msgcollect.FrDHLCli.collectMsgs(FrDHLCli.java:281)
     at com.alp.ccs21.soapwg.msgcollect.FrDHLCli.run(FrDHLCli.java:203)Im i missing something obvious here?
Thanks in advance.

Edited by: ziggy on Jul 31, 2010 4:48 PM

Similar Messages

  • Caused by: oracle.xml.parser.v2.XMLParseException: '=' missing in attribute

    This is a Bursting problem under EBS 5.6.3. In production we have 5.6.2 and since our development system to 5.6.3 has been upgraded, the following error occurs on every single Burst being done using the Concurrent Manager only:
    Caused by: oracle.xml.parser.v2.XMLParseException: '=' missing in attribute.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttrValue(NonValidatingParser.java:1502)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1408)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1350)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1180)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(BurstingProcessorEngine.java:1340)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.process(BurstingProcessorEngine.java:1297)
         at oracle.apps.xdo.batch.DocumentProcessor.process(DocumentProcessor.java:213)
         at xxwel.ebs.xmlp.XXWELBurster.processDocuments(XXWELBurster.java:143)
    I can run the same file through 5.6.3 ($JAVA_TOP) libraries mounted on my JDev with no problems. Also the same XML file runs fine on Production under 5.6.2 - no problems. I have also checked the XML file using a syntax checker. I know this is not a syntax issue even though it looks like it.
    Could someone point me in the right direction - explain what this means. Getting desperate as 5.6.3 will be going into production soon and all Bursting will fail with this error. I can't get the simplest XML File to Burst - NOTE this is only occurring on the EBS system (even running without the CM ie. a standalone java main it fails). I think this has something to do with the XML parser version and the EBS environment.
    Please help...

    Hi Tim, good thinking - wouldn't have thought to check this file. Anyway can confirm that the problem is happening with multiple burst control files so I haven't checked the files themselves as the problem seems systemic. anyway here is an example.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXWEL_BIP_UNI_INVOICES/LIST_G_CUSTOMER_NUMBER/G_CUSTOMER_NUMBER">
    <xapi:delivery>
    <xapi:email server="mailwa01" port="25"
    from="${ADMIN_EMAIL}" reply-to ="${ADMIN_EMAIL}">
    <xapi:message id="111" to="${ADMIN_EMAIL}" attachment="true" subject="Unigas Inv
    oice No: ${TRX_NUMBER}">
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="111">
    <xapi:template type="rtf" location="/u02/prod/prodappl/wel/11.5.0/interface/bip/templates/uni_invoice_template.rtf">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    I will start stripping the control files to make sure they are not the problem in the meantime.

  • Oracle.xml.parser.v2.XMLParseException: Missing entity 'nsim' Exception

    Hi All,
    Can anyone tell me what could be the reason for the following parsing exception?
    oracle.xml.parser.v2.XMLParseException: Missing entity 'nsim'.
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at org.xml.sax.SAXException.<init>(SAXException.java:45)
         at org.xml.sax.SAXParseException.<init>(SAXParseException.java:116)
         at oracle.xml.parser.v2.XMLParseException.<init>(XMLParseException.java:62)
         at oracle.xml.parser.v2.XMLError.flushErrors(Compiled Code)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(Compiled Code)
         at oracle.xml.parser.v2.XMLParser.parse(Compiled Code)
         at com.elsevier.util.xml.XMLHelper.parse(Compiled Code)
         at com.elsevier.util.xml.XMLHelper.parse(Compiled Code)
         at com.elsevier.util.xml.XMLHelper.parse(Compiled Code)
         at com.elsevier.cds.xml.XMLDocManagement.PublicationInformation(Compiled Code)
         at com.elsevier.cds.promis.FetchPublicationXML.getPublicationXML(Compiled Code)
         at com.elsevier.cds.promis.NewPromisData.processPublications(Compiled Code)
         at com.elsevier.cds.promis.NewPromisData.<init>(NewPromisData.java:152)
         at com.elsevier.cds.promis.NewPromisData.main(NewPromisData.java:451)
    XML parse error in file com.elsevier.cds.promis:/PubID=623277
    at line 382, character 40
    Missing entity 'nsim'.
    Thanks,
    Raghu

    Is an Entity used in the xml document and not defined in the document?

  • Error in Parsing XML using fx:XML/ [Error- 1090: XML parser failure: element is malformed]

    Hi All,
    I am getting error while loading XML in <fx:XML> tag.
    Error:
    TypeError: Error #1090: XML parser failure: element is malformed.
    MXML Code:
    <fx:Declarations>
    <fx:XML id="xmlSource2" source="sample.xml"/>
    </fx:Declarations>
    Sample XML Used: (sample.xml)
    <?xml version="1.0" encoding="UTF-8"?>
    <File>
        <Chemical id="000035676" displayFormula="C39-H45-N2-O6"
            displayName="Dimethyltubocurarine">
            <NameList>
                <NameOfSubstance>
                    Dimethyltubocurarine
                    <SourceList>
                        <Source>MESH</Source>
                    </SourceList>
                </NameOfSubstance>
                <SystematicName>
                    Tubocuraranium, 6,6',7',12'-tetramethoxy-2,2',2'-trimethyl-
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </SystematicName>
                <Synonyms>
                    Dimethyltubocurarine
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </Synonyms>
                <Synonyms>
                    Dimethyltubocurarinium
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </Synonyms>
                <Synonyms>
                    Methyltubocurarinum
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </Synonyms>
            </NameList>
            <NumberList>
                <CASRegistryNumber>
                    35-67-6
                    <SourceList></SourceList>
                </CASRegistryNumber>
                <RelatedRegistryNumber>
                    518-26-3 (iodide.hydriodide)
                    <SourceList>
                        <Source>MESH</Source>
                    </SourceList>
                </RelatedRegistryNumber>
            </NumberList>
            <ClassificationList>
                <ClassificationCode>
                    Neuromuscular nondepolarizing agents
                    <SourceList>
                        <Source>MESH</Source>
                    </SourceList>
                </ClassificationCode>
            </ClassificationList>
            <FormulaList>
                <MolecularFormula>
                    C39-H45-N2-O6
                    <SourceList>
                        <Source>NLM</Source>
                    </SourceList>
                </MolecularFormula>
            </FormulaList>
            <FormulaFragmentList></FormulaFragmentList>
            <NoteList></NoteList>
            <LocatorList>
                <FileLocator
                    url="http://cnetdb.nci.nih.gov/cgi-bin/srchcgi.exe?DBID=****3&SFMT=****_basic%2F10%2F0%2F0&TYPE=search&SRCHFORM=passthru%3D%Asrchform%3ASRCH%3A&FIELD_001=[CAS]35-67-6&#38;GoButton=Search&#38;FIELD_001_CTL=EXPR&#38;FIELD_908=&#38;FIELD908_CTL=HASABSTRACT&#38;FIELD_903=&#38;FIELD_903_CTL=YEARFORE&#38;DOCPAGE=10">CANCERLIT</FileLocator>
                <FileLocator
                    url="http://toxnet.nlm.nih.gov/cgi-bin/sis/search/r?dbs+toxline:@and+@term+@rn+35-67-6+@term+@org+DART">DART/ETIC</FileLocator>
                <FileLocator
                    url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=35-67-6[ECNO]+OR+&#34;~&#34;[MH]">MEDLINE</FileLocator>
                <FileLocator
                    url="http://www.nlm.nih.gov/cgi/mesh/2K/MB_cgi?term=35-67-6&rn=1">MESH</FileLocator>
                <FileLocator
                    url="http://toxnet.nlm.nih.gov/cgi-bin/sis/search/r?dbs+toxline:@term+@rn+35-67-6+@OR+@mh+""">TOXLINE</FileLocator>
            </LocatorList>
        </Chemical>
    </File>
    Also, when I am using HttpService to load same XML I am getting no such error!!
    <s:HTTPService id="employeeService"
                           url="sample.xml"
                           result="employeeService_resultHandler(event)"
                           fault="employeeService_faultHandler(event)"/>
    Please help!!
    Thanks.
    Abhinav

    I think url in XML is creating problem here.
    <FileLocator
                    url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=23-95-0[ECNO]+OR+&#34;~&#34;[MH]">MEDLINE</FileLocator>
    Is there any way to parse this XML using <fx:XML/> ??
    Thanks.

  • B2B-50029:  B2B runtime error: oracle.xml.parser.v2.XMLParseException: Start of root element expected.

    Dear All,
    I am a beginner to Oracle B2B.
    I have created an agreement to Recieve 852, Product Activity data(POS) from one of the Trading partner. This is an inbound process.
    A  SOA composite application is created to Recieve the data and insert into perticular columns of the database table using database adapter.
    I have tested the Interface with some couple of file and it went perfect without any error. Now I have to test the interface with some other files.
    This time also I am not getting any error in Business Message, Wire message and Application message but the composite application is not picked.
    The log file shows : B2B-50029: B2B runtime error: oracle.xml.parser.v2.XMLParserException: Start of root element expected.
    Please let me know if anyone has faced this issue. it will be of great help.
    Thanks,
    Abhas Kushwaha

    Hello,
    Just a thought, When I had the similar problem, it appeared to be a BOM (Byte order mark - Wikipedia, the free encyclopedia) in the xml file, which is the very first character in the xml file, so the file was not identified to be a valid xml file. Removing the BOM from the xml file fixed my problem, however, I did not spend much time in fixing using B2B, the vendor  (sender of the file) fixed the file and started sending without BOM. So my work was easier.
    The character is not visible in all XML editors, however, it was visible in JDeveloper. I used a tool to identify and remove during testing until the vendor fixed the file, the tool is called file bom detector,http://www.bryntyounce.com/filebomdetector.htm
    Hope this helps,
    Thanks,
    Venkatesh

  • Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.ora

    Compiler error "oracle.xml.parser.v2.XMLElement" not found in class com.oracle.demos......?
    I am currently testing a simple sample application with a java code similar to the one shown at
    the bottom of this post.
    However during deployment/compilation the compiler gives an error:
    Error(26,23): XMLElement not found in class com.oracle.demos.orderbooking.ApproveImpl
    Additionally similar other errors appear:
    Error(23,66): JAXBException not found in class com.oracle.demos.orderbooking.ObjectFactory
    Error(51,58): UnmarshalException not found in class com.oracle.demos.orderbooking.ObjectFactory
    Error(9,92): Element not found in interface com.oracle.demos.orderbooking.Approve
    What's wrong?
    It seems to me that I have to add some (more) *.jar files/libraries to the project?
    Which *.jars and where should I add them in JDeveloper?
    source code:
    package com.oracle.demos.orderbooking;
    public class ApproveImpl extends com.oracle.demos.orderbooking.ApproveTypeImpl implements com.oracle.demos.orderbooking.Approve
    public ApproveImpl(oracle.xml.parser.v2.XMLElement node)
    super(node);
    }

    Hai James this the response I am getting can you please tell what should I write inside ora:getNodeValue() to get the value of node <genReturnText>
    The drag and dropping the variable name is not working, I have to write the path manually but I dont know how.
    <ns1:getRoutingAndFrameJumpersResponse xmlns:ns1="com.NetworkInstallations">
    -<com.GetRoutingAndFrameJumpersOutput>
    <destination>
    SW
    </destination>
    <e2EData>
    busProcOriginator
    </e2EData>
    <genReturnCode>
    40777
    </genReturnCode>
    <genReturnText>
    EMW_Get_Routing_And_FrameJumpers_Succeeded
    </genReturnText>
    <supplCode>
    ISY002
    </supplCode>
    <supplText>
    Transaction successfully completed.
    </supplText>
    <severityCode>
    S
    </severityCode>
    <retriable>
    false
    </retriable>
    </com.GetRoutingAndFrameJumpersOutput>
    </ns1:getRoutingAndFrameJumpersResponse>

  • Invalid InputSource Error using XML Parser V2

    I'm using the following code to read xml from
    a clob field in an Oracle database.
    try
    // Parse xsl and xml documents
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    Statement sqlSel=conn.createStatement();
    ResultSet xmlDet=sqlSel.executeQuery("SELECT * FROM USER_XML WHERE IHC_USER_ID='123456789'");
    if (xmlDet.next())
    CLOB xmlCLOB= ((OracleResultSet)xmlDet).getCLOB(2);
    int index=0;
    Reader clobStream=xmlCLOB.getCharacterStream();
    parser.parse(clobStream);
    Everything seems to work fine, and I can
    create a String from the stream which contains the entire XML document. However, if I try to do the above and parse the Stream, or alternatively parse the String resulting from the stream, I get the following Error:
    nvalid InputSource.
    void oracle.xml.parser.v2.XMLError.flushErrors()
    void oracle.xml.parser.v2.XMLError.error(int, int, java.lang.String, java.lang.String, java.lang.String, int, java.lang.Exception, int, boolean)
    void oracle.xml.parser.v2.XMLError.error(oracle.xml.parser.v2.XMLReader, java.lang.String, int, java.lang.Exception, int, boolean)
    void oracle.xml.parser.v2.XMLReader.pushXMLReader(org.xml.sax.InputSource)
    void oracle.xml.parser.v2.XMLParser.parse(java.lang.String)
    void xmlquerydb.testParse()
    void xmlquerydb.main(java.lang.String[])
    Any ideas what could cause this?

    I'm quite sure the xml documents are valid.
    At present, I'm just using booklist.xml,
    which comes as an example with the XML SQL
    utility. The problem is not really with the
    parsing (If I convert the xml into a url then it parses fine).
    My real problem is pulling the document out
    of a CLOB field. Regardless of what I pass to the parser( a string or a stream), or which xml its parsing, I still get the Invalid inputsource error.

  • Error: The XML parser encountered an Error

    Error: The XML parser encountered an Error, and could not complete the conversion for portlet id=6,343, it returned the following message: XML Parsing Error.
    I am a beginning portal developer and need help identifying what is causing this error. I have gone into navigator, clicked the provider tab then clicked on the provider that I wanted to work with and got the above error. Can anyone tell me what is wrong.

    Please try posting your question to the Oracle Portal Development Kit (PDK) forum.
    null

  • Upsert of xmltype from given xpath - missing something obvious?

    Version: 10.2.0.*2* EE
    I am trying to do an upsert (update/ insert ) of an xmltype for a given xpath.
    The xml data is being passed as an xmltype, the xpath is a string (varchar2), the new value is a string, varchar2.
    If the node specified by the xpath exists this is trivial using updatexml; of course if the node doesn't exist nothing happens. I can check for the nodes existence using exists node, but I'm coming unstuck trying to figure out how to insert the node.
    All the APIS I can find that insert XML (APPENDCHILDXML,INSERTXMLBEFORE, INSERTCHILDXML) do not take an xpath but require an xmltype. Which means if I am reading this right I have no choice but to parse the xpath varchar2 string to try and construct an xmltype (ugh!).
    I can't find any API that just takes an xpath as a varchar2 and a value and gives me an xmltype. Ideally I don't even want that, would just like an API that returns the updated XML which has either had the xpath updated (or inserted if it didn't exist) with the new value.
    I am not an XML expert but I am pretty handy with SQL and PL/SQL. To me this just seems incredibly cumbersome just to do something as trivial as an upsert, so I am hoping I am missing something obvious!
    Can soemone please set me straight with a pointer or example?
    To top it all off the XML uses namespaces, but they aren't registered, there is no schema registration going on.

    Marco Gralike wrote:
    Couldn't it be done via XQuery, although the database version doesn't really help...That would be possible with a dynamic XQuery expression, but "painful" with a static expression as it would require parsing the XPath, and rebuilding the entire input document with the required modifications.
    I think XSLT would be more efficient in this case.
    Maybe, one day, when the database has XQuery Update Facility, we will be able to do this :
    copy $a := $doc/Address
    modify (
      if ($a/zip)
        then replace value of node $a/zip with "12345"
        else insert node element zip {"12345"} into $a
    return $a
    user12083137 wrote:To me, from a SQL background, I can't believe this simple case is simply not covered.Maybe not as simple as it seems. :)
    The functionality can be simulated via an IF/THEN/ELSE logic, or a DELETE/INSERT sequence.
    For example :
    case when existsNode(doc, xpath) = 1
      then updateXML(
             doc
           , xpath || '/text()'
           , somevalue
      else appendchildxml(
             doc
           , substr(xpath, 1, instr(xpath, '/', -1)-1)
           , xmlelement(
               evalname(substr(xpath, instr(xpath, '/', -1)+1))
             , somevalue
    endor,
    appendChildXML(
      deleteXML(doc, xpath)
    , substr(xpath, 1, instr(xpath, '/', -1)-1)
    , xmlelement(
        evalname(substr(xpath, instr(xpath, '/', -1)+1))
      , somevalue
    )

  • RMIC & Netbeans - am I missing something obvious?

    I finally managed to get rmic to compile something without errors, but I can't find any additional files I thought it would create. I added the following to build.xml in my server application:
    <target name="-post-compile">
    <!-- Empty placeholder for easier customization. -->
    <!-- You can override this target in the ../build.xml file. -->
    <echo message="Running rmic ..."/>
    <rmic base="${build.classes.dir}" includes="**/*Impl.java;${build.classes.dir}"/>
    </target>
    And I see this in the compiler output:
    Running rmic ...
    But nothing. Did I miss something obvious? I'm using Netbeans Beta 6.
    Thanks

    Ok, so I read some more recent tutorials (teaches me for reading an old book!) and I have some success. Except:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: StudioWorks.security.SecurityResponder
    at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
    at sun.rmi.transport.Transport$1.run(Unknown Source)
    Obviously there are two issues;
    1) Can't find the remote object's class
    2) The remove object isn't serializable? Odd, as it extends Remote. I thought that was enough based on what I'm reading
    Maybe it's a simple mistake of not providing the right parameters/classpath to the rmiregistry, which I'm running from the command line and not through Netbeans (don't know how to do that).
    Back to the reading! :)
    Edited by: BobCrivens on Oct 14, 2007 8:32 PM

  • I updated to lion and now don't have a minimize button in the new emails i am writing.  Do i really have to save it as a draft to be able to have multiple emails in progress?  Or am I missing something obvious?!

    I updated to lion and now don't have a minimize button in the new emails i am writing.  Do i really have to save it as a draft to be able to have multiple emails in progress?  Or am I missing something obvious?!

    Photoshop Elements is not part of the Cloud, I will move this to that forum
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    -and https://forums.adobe.com/thread/1572504
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
    -http://helpx.adobe.com/contact.html?product=photoshop-elements or
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html

  • I synched iPhone and PC but can't locate any of library on iPhone - am i missing something obvious ?

    i synched iPhone and Pc but can't locate any of library on IPhone - am I missing something obvious ?

    What did you select to sync?
    It will only sync what you tell it to sync.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Adding an application component - missing something obvious

    Hi,
    We just upgraded to portal (running server and portal on windows nt) and I am developing. We have reports already completed in reports 6i. However, I am having trouble adding them to the pages or even in the "other providers" listed in portlet repository. The report is connected, as when I click on "edit" and then "run," it runs. I just don't know what I need to do so that the report shows in the "application component" when I click on "add item."
    I am sure that I am missing something obvious. Any help would be greatly appreciated.
    Thanks,
    Lindsay

    Thanks anyway, I figured it out. :-)

  • Am I missing something OBVIOUS

    Is it just me or am I missing something OBVIOUS
    I simply find it ALMOST IMPOSSIBLE to report a BROADBAND fault using E_MAIL
    I seem to be going round in circles .....................and the HELP SOLUTIONS ..... DON'T
    Yours   ING D M Logan
    Ing D M Logan Retired ACADEMIC Structural Engineer

    Hi Westerwood_Community and welcome
    If you select 'Broadband' at the top of any forum page, then click on 'Contact us about Broadband' , select 'BT Broadband', select the section you need (in your case 'I have problems connecting to broadband'), you can then email BT from there.
    The direct link to contact BT is - http://bt.custhelp.com/app/contact/c/346,401,1847
    Hope this helps
    edit. Or simply use the link Keith provided
    -+-No longer a forum member-+-

  • Error in XML Parsing  through Schema doc.

    I know this is not the correct group for XML related queries. I had posted the query in XML forum but could not get any reply. I have been in the forum and know this is very active forum.
    Please help if you can..
    Hi Friends,
    I am trying to validate XML file as per the defined schema document through JAXB parser.
    Following is my xml. schema and java class code.
    XML File*
    <?xml version="1.0"?>
    <notify xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NotificationDetailsSchema.xsd">
    <notification>
    <alertname>Alert1</alertname>
    <deletable>Y</deletable>
    <descurl>Alert1URL</descurl>
    </notification>
    <notification>
    <alertname>Alert2</alertname>
    <deletable>Y</deletable>
    <descurl>Alert2URL</descurl>
    </notification>
    </notify>
    Schema file_
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:element name="notify">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="notification" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="alertname">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="deletable">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="Y|N"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="descurl">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Java Class_
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema(schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    I tried to execute the validation through stand along java class and it worked correctly.
    However when I added this class into my Fusion web application, I am getting following error.
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Alert1'._
    Can you please help me to figure out this problem?
    Edited by: Jaykishan on Jul 20, 2011 10:04 AM

    earlier it was
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'USAVER'.anmd now it is
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Alert1'.some problem in this Alert1 message is what i guess.. some parsing error.. look closely..
    i guess some of the xml characters are not rendered properly in forum software.. or it may be truncated.. so i believe something wrong which is not visible..

Maybe you are looking for