Why is this XML ng valid?

I am trying to create sample XML files as source for my RTF template, but when I try to load it I get the error: Please load XML data.
I created it with Reports 10, and it looks like this:
<?xml version="1.0" encoding="WINDOWS-1252"?>
<!-- Generated by Oracle Reports version 9.0.4.0.33 -->
<BRIEF>
<LIST_G_CORR_ID>
<G_CORR_ID>
<COR_KLA_ID>4571</COR_KLA_ID>
<NAAM>Mouse 1660</NAAM>
<KLA_ID>1660</KLA_ID>
<REF_VELD>Ref:SDJLKJSD</REF_VELD>
<PLAATSNAAM_VELD>Hoofddorp, 2006/03/21 14:09:00</PLAATSNAAM_VELD>
<BETREFT_VELD>21 maart 2006</BETREFT_VELD>
<BIJLAGEN> </BIJLAGEN>
<ADRES_VELD_CC> </ADRES_VELD_CC>
<ORIG_NAAM></ORIG_NAAM>
<AANHEF_CC></AANHEF_CC>
<CHECK_CC>0</CHECK_CC>
<CC_NAAM></CC_NAAM>
<CHECK_CC2>0</CHECK_CC2>
<COR_ID>116836</COR_ID>
</G_CORR_ID>
</LIST_G_CORR_ID>
</BRIEF>
What is wrong with this XML?

Ok I found it.
Sometimes (i haven't figured out why yet) when a column is empty and you generate XML with reports, it inserts & n b s p ; between the XML tags. These were not seen in my posting before and when I copied and pasted the code I pasted here the xml was valid.
When I compared the two XML files I noticed the difference.
The funny thing is: I select 4 clob columns of which the contents are empty_clob() (which is not null, since nvl doesn't change them), and 2 of them contain & n b s p ; between the XML tags and two don't. I understand that XML Publisher doesn't parse this and it shouldn't, so I am going to open up a service request for Reports to get to the bottom of this.....

Similar Messages

  • Xml schema validation problem

    Hi All
    How to tackle this xml schema validation problem
    i am using the sample code provided by ORacle technet for xml
    schema validation in the Oracle database(817).
    The sample code works perfectly fine.
    Sample as provided by http://otn.oracle.com/tech/xml/xdk_sample/archive/xdksample_093001.zip.
    It works fine for normal xml files validated against
    xml schema (xsd)
    but in this case my validation is failing . Can you let me know why
    I have this main schema
    Comany.xsd
    ===========
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.company.org"
    xmlns="http://www.company.org"
    elementFormDefault="qualified">
    <xsd:include schemaLocation="Person.xsd"/>
    <xsd:include schemaLocation="Product.xsd"/>
    <xsd:element name="Company">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Person" type="PersonType" maxOccurs="unbounded"/>
    <xsd:element name="Product" type="ProductType" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    ================
    which includes the following 2 schemas
    Product.xsd
    ============
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:complexType name="ProductType">
    <xsd:sequence>
    <xsd:element name="Type" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    ==============
    Person.xsd
    ===========
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xsd:complexType name="PersonType">
    <xsd:sequence>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="SSN" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    =================
    now when i try to validate a xml file against Company.xsd
    it throws an error saying unable to find Person.xsd.
    no protocol error
    Now where do i place these 2 schemas(.xsd files) Person & product
    so that the java schemavalidation program running inside Oracle
    database can locate these files
    Rgrds
    Sushant

    Hi Jinyu
    This is the java code loaded in the database using loadjava called by a wrapper oracle stored procedure
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import java.net.*;
    import java.io.*;
    import org.w3c.dom.*;
    import java.util.*;
    import oracle.sql.CHAR;
    import java.sql.SQLException;
    public class SchemaUtil
    public static String validation(CHAR xml, CHAR xsd)
    throws Exception
    //Build Schema Object
    XSDBuilder builder = new XSDBuilder();
    byte [] docbytes = xsd.getBytes();
    ByteArrayInputStream in = new ByteArrayInputStream(docbytes);
    XMLSchema schemadoc = (XMLSchema)builder.build(in,null);
    //Parse the input XML document with Schema Validation
    docbytes = xml.getBytes();
    in = new ByteArrayInputStream(docbytes);
    DOMParser dp = new DOMParser();
    // Set Schema Object for Validation
    dp.setXMLSchema(schemadoc);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setPreserveWhitespace (true);
    StringWriter sw = new StringWriter();
    dp.setErrorStream (new PrintWriter(sw));
    try
    dp.parse (in);
    sw.write("The input XML parsed without errors.\n");
    catch (XMLParseException pe)
    sw.write("Parser Exception: " + pe.getMessage());
    catch (Exception e)
    sw.write("NonParserException: " + e.getMessage());
    return sw.toString();
    This is the code i used initially for validating a xml file against single xml schema (.xsd) file
    In the above code could u tell how to specify the second schema validation code for the incoming xml.
    say i create another Schemadoc for the 2nd xml schema.
    something like this with another parameter(CHAR xsd1) passing to the method
    byte [] docbytes1 = xsd1.getBytes();
    ByteArrayInputStream in1 = new ByteArrayInputStream(docbytes1);
    XMLSchema schemadoc1 = (XMLSchema)builder.build(in1,null);
    DOMParser dp = new DOMParser();
    How to set for the 2nd xml schema validation in the above code or can i combine 2 xml schemas.
    How to go about it
    Rgrds
    Sushant

  • When logging on to certain websites I get a tab come up saying i hav'nt got a valid certificate, and safari can't open it, why has this started happening?

    When logging on to certain websites I get a tab come up saying Safari can't open it Because the certificate is not valid, why has this just started happening, and how do I correct it?

    Either someone has installed a client side cert into Safari or the site in question has let their SSL cert expire. (not your fault).  You could try using Firefox or Chrome instead.

  • Thank you for approving my feed iTunes . The only problem is, there is no art work, even though artwork was submitted correct sizes and formats were used. Why is this and how can the problem be rectified?

    Thank you for approving my feed iTunes . The only problem is, there is no art work, even though artwork was submitted correct sizes and formats were used. Why is this and how can the problem be rectified?

    Thanks for getting back. Hadn't got round to re uploading the amended feed. I just did it now.
    The only thing is, Feed Validator doesn't like it because of the picture size, and a couple of other things, it reeds the following:
    Sorry
    This feed does not validate.
    line 22, column 14: width must be between 1 and 144: 1400 [help] <width>1400</width>
                  ^
    line 23, column 15: height must be between 1 and 400: 1400 [help] <height>1400</height>
                   ^
    line 25, column 21: XML parsing error: <unknown>:25:21: not well-formed (invalid token) [help]
    <itunes:image href=http://www.whiteberg.com/Wdotfontitunes2.png" />
                         ^
    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
    Your feed appears to be encoded as "utf-8", but your server is reporting "US-ASCII" [help]
    line 4, column 114: Self reference doesn't match document location [help]... dcast.xml" type="application/rss+xml" />
                                                 ^

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • My app store keeps asking for me to update my payment method as its about to expire so i enter my details and it keeps saying card declined , why is this ?

    my iphone app store keeps asking me to update my payment method every time a go to download something from the store , it says my method is about to expire so when i re-enter my card information it keeps saying that my card is declined , why is this?

    What sort of card are you trying to use ?
    If it's a debit card then I don't think that they are still accepted as a valid payment method - they are not listed on this page and there have been a number of posts recently about them being declined
    If it's a credit card then is it registered to exactly the same name and address (including format and spacing etc) that you have on your iTunes account, it was issued by a bank in your country and you are currently in that country ? If it is then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • "This is a valid Apple ID but not an iCloud account" on mail, but not online

    i am running mavericks with the latest update.  yesterday my mail stopped working for icloud but still works with all my other mail accounts.  i can log into icloud just fine online but when i try to add it back to my mail i get "This is a valid Apple ID but not an iCloud account". why is this.  i use the right info i have always used and can use it to log into icloud online.  why is apple tourchering me so, what have they changed in there ever changing id intanglement that has lead to this. 
    help anyone. 

    Welcome to the Apple Support Communities
    You must log in iCloud on an iPod touch, iPad, iPhone or Mac before logging on a PC > http://www.apple.com/icloud/setup/

  • Java Stored Procedure SAXParser XML Schema Validation

    Using Oracle XML Developers Kit 10.2.0.2.0 - Production.
    Attempting to validate using XML Schema in a Java stored procedure with the code:
                   if ( schemaDoc == null )
                        // Obtain default connection
                        Connection conn = new OracleDriver().defaultConnection();
                        OraclePreparedStatement stmt = (OraclePreparedStatement) conn.prepareStatement("SELECT XmlDocObj FROM XmlDoc WHERE XmlDocNbr = 2");
                        OracleResultSet rset = (OracleResultSet)stmt.executeQuery();
                        if ( rset.next() )
                             // get the XMLType
                             XMLType schemaXml = (XMLType)rset.getObject(1);
                             XSDBuilder builder = new XSDBuilder();
                             XMLSchema schemaDoc = (XMLSchema)builder.build(new InputSource(schemaXml.getInputStream()));
                   if ( inst == null )
                        inst = new ValidateCoreRequest();
                   ErrorHandlerImpl handler = inst.getNewErrorHandler();
    SAXParser saxParser = new SAXParser();
    saxParser.setXMLSchema(schemaDoc);
    saxParser.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    saxParser.setErrorHandler(handler);
    saxParser.parse(new InputSource(new StringReader(docStr)));
    if( handler.validationError )
                        errorMsg[0] = handler.saxParseException.getMessage().substring(0, Math.min(199, handler.saxParseException.getMessage().length()));
    Never reports validation errors in the XML. Although the XDK Programmers Guide states "...you can use
    the oracle.xml.parser.schema.XSDBuilder class to build an XML schema and
    then configure the parser to use it by invoking the XMLParser.setXMLSchema()
    method. In this case, the XML parser automatically sets the validation mode to
    SCHEMA_STRICT_VALIDATION and ignores the schemaLocation and
    noNamespaceSchemaLocation attributes." No validation seems to occur. I have tried to set an xsi:noNamespaceSchemaLocation attribute on the root XML node, but this results in URL errors if the URL is not valid or schema build errors if the URL is valid, but does not point to a real location.
    It appears that without a schema location attribute, no schema validation occurs. Using setXMLSchema() with a database source does not seem to cause the schema location attributes to be ignored. At least for Java stored procedures.
    Does XML Schema validation work in the database for externally referenced schemas?
    Thank You,
    Art

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jan Vissers ([email protected]):
    I have two schemas A and B. A contains a java stored procedure which calls a java stored procedure stored in B. Upon resolving the "A" Java Stored Procedures I get the following error:
    ORA-29545: badly formed class: at offset 3093 of Adapter.TFADPBeschikbaarheid.sendAanvraag expecting a class-oracle.xml.parser.v2.XMLDocument but encountered a class-oracle.xml.parser.v2.XMLDocument.
    ... Question:
    it is expecting something which it has in fact encountered... SO!!!! What is the error.
    Thx,
    Jan<HR></BLOCKQUOTE>
    Try this:
    Edit your XSU installation script located on lib directory of Oracle XSU's distribution:
    Find the line:
    loadjava -r -v -u $USER_PASSWORD xmlparserv2.jar
    Replace by:
    loadjava -r -v -g public -u $USER_PASSWORD xmlparserv2.jar
    And installs your Oracle XSU again.
    Best regards, Marcelo.

  • JAXP API provides no way to enable XML Schema validation mode

    I am evaluating XDK 9.2.0.5.0 for Java and have encountered another
    problem with XML Schema support when using the JAXP API.
    Using the classes in oracle.xml.jaxp.*, it appears to be impossible to
    enable XML Schema validation mode. I can set the schema object, but
    the parser does not use it for validation.
    If I use DOMParser directly, I can call the setValidationMode(int)
    method to turn on schema validation mode. There is no equivalient
    means to enable XML Schema validation when using the JAXP API.
    Test case for JAXP API:
    === begin OracleJAXPSchemaTest.java ======
    package dfranklin;
    import java.io.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import oracle.xml.parser.schema.XMLSchema;
    import oracle.xml.parser.schema.XSDBuilder;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class OracleJAXPSchemaTest
    private final static String xsd = ""
    +"<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:dfranklin:test\">"
    +" <xsd:element name=\"amount\" type=\"xsd:integer\"/>"
    +"</xsd:schema>";
    private final static String xml =
    "<amount xmlns=\"urn:dfranklin:test\">1</amount>";
    public static void main(String[] args)
    throws Exception
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
              "oracle.xml.jaxp.JXDocumentBuilderFactory");
    new OracleJAXPSchemaTest().run();
    public void run()
    throws Exception
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setValidating(true);
    dbf.setNamespaceAware(true);
    XMLSchema xmlSchema = buildXMLSchema(new StringReader(xsd));
    dbf.setAttribute("oracle.xml.parser.XMLParser.SchemaObject",
              xmlSchema);
    DocumentBuilder docbldr = dbf.newDocumentBuilder();
    Document doc = docbldr.parse(new InputSource(new StringReader(xml)));
    print(doc);
    private XMLSchema buildXMLSchema(Reader xsdin)
    throws Exception
    XSDBuilder xsdBuilder = new XSDBuilder();
    XMLSchema xmlSchema = (XMLSchema)xsdBuilder.build(xsdin, null);
    return xmlSchema;
    private void print(Document doc)
    throws
    javax.xml.transform.TransformerConfigurationException,
    javax.xml.transform.TransformerException
    Transformer xformer = TransformerFactory.newInstance().newTransformer();
    xformer.transform(new DOMSource(doc), new StreamResult(System.out));
    System.out.println();
    === end OracleJAXPSchemaTest.java ======
    Running that program:
    java dfranklin.OracleJAXPSchemaTest
    produces this output
    Exception in thread "main" oracle.xml.parser.v2.XMLParseException: Element 'amount' used but not declared.
    at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:148)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:269)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:96)
    at dfranklin.OracleJAXPSchemaTest.run(OracleJAXPSchemaTest.java:40)
    at dfranklin.OracleJAXPSchemaTest.main(OracleJAXPSchemaTest.java:27)
    This shows that the parser is not using the XML Schema to validate the
    document. I think it's expecting to find a DTD.
    Here is the equivalent program using DOMParser directly, and setting
    validation mode to SCHEMA_VALIDATION.
    === begin OracleParserTest.java ====
    package dfranklin;
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import oracle.xml.parser.schema.XMLSchema;
    import oracle.xml.parser.schema.XSDBuilder;
    import oracle.xml.parser.v2.DOMParser;
    import oracle.xml.parser.v2.XMLParser;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class OracleParserTest
    private final static String xsd = ""
    +"<xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"urn:dfranklin:test\">"
    +" <xsd:element name=\"amount\" type=\"xsd:integer\"/>"
    +"</xsd:schema>";
    private final static String xml =
    "<amount xmlns=\"urn:dfranklin:test\">1</amount>";
    public static void main(String[] args)
    throws Exception
    new OracleParserTest().run();
    public void run()
    throws Exception
    DOMParser dp = new DOMParser();
    XMLSchema xmlSchema = buildXMLSchema(new StringReader(xsd));
    dp.setXMLSchema(xmlSchema);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.parse(new InputSource(new StringReader(xml)));
    Document doc = dp.getDocument();
    print(doc);
    private XMLSchema buildXMLSchema(Reader xsdin)
    throws Exception
    XSDBuilder xsdBuilder = new XSDBuilder();
    XMLSchema xmlSchema = (XMLSchema)xsdBuilder.build(xsdin, null);
    return xmlSchema;
    private void print(Document doc)
    throws
    javax.xml.transform.TransformerConfigurationException,
    javax.xml.transform.TransformerException
    Transformer xformer = TransformerFactory.newInstance().newTransformer();
    xformer.transform(new DOMSource(doc), new StreamResult(System.out));
    System.out.println();
    === end OracleParserTest.java ====
    Running that program
    java dfranklin.OracleParserTest
    produces this output
    <?xml version = '1.0'?>
    <amount xmlns="urn:dfranklin:test">1</amount>
    In this case, the parser has validated the document.
    I also tried this with version 10.1.0.0.0 beta, and got the same
    error.
    Darin Franklin

    Thanks for posting that. I tried that code and still got my problem. The big difference is that I'm reading a group of XML files each of which uses a large number of schema files. There are over 50 schema files organized so they can be included as needed. Each of the XML files has a noNamespaceSchemaLocation attribute specifying one of the ten top schma files, that includes many others.
    However, I did solve the problem. I added one line --
           saxb.setFeature( "http://apache.org/xml/features/validation/schema",
                    true);
            // next line is new
            saxb.setProperty( JAXPConstants.JAXP_SCHEMA_LANGUAGE,
                    JAXPConstants.W3C_XML_SCHEMA );after the setFeature to turn on schema validation.
    (It needs an import org.apache.xerces.jaxp.JAXPConstants; statement.)
    Note:With the feature set to true and the setProperty commented out, the EntityResolver is called at construction tiem, and for each schema file, but each element is flagged as needing to be declared.
    With the feature commented out, and the setProperty in place, the EntityResolver is not called, and there is no validation performed. (I added invalid content to one of the files and there were no errors listed.)
    With both the setFeature and the setProperty in place, however, I get the calls from the EntityResolver indicating that it is processing the schema files, and for the good files, I get no errror, but for the bad file, I get an error indicating a bad validation.
    Now I can make the EntityResolver quiet and get what I wanted. Maybe there are other ways to do this, but I've got one that works. :-)
    Thanks to all who have helped.
    Dave Patterson

  • Adapter Engine XML Schema Validation Error Surpression

    We recently developed a number of web services that are called by 3rd parties outside our network. The web service request once made is picked up by a Web Dispatcher which then forwards the request to the de-central adapter. Both of these components reside within within a DMZ.
    We have, as an additional security measure made use of the new Adapter Engine XML Schema validation available with PI 7.1, to ensure that the payload of incomming messages is checked to ensure that it is a known structure.
    Now here is my problem, we recently had these services penetration tested by a 3rd party to ensure that they were secure and whilst the report was very good showing no major weaknesses they did pickup on a couple of items including that the fact that if the XSD to be used during payload message validation cannot be found an 'ADAPTER.JAVA_EXCEPTION' is returned to the web service consumer that highlights the path details of where the XSD should be (but could not be found).
    This was viewed as useful to an attacker for a number of reasons:
    1. Feedback in SQL injection attempts via verbatim DB error messages greatly improves attacker efficiency
    2. Path information is useful to the attacker for OS fingerprinting, directory traversal attempts
    3. Other miscellaneous stack trace information is useful to an attacker to understand how the application works
    Is there anyway this can be surpressed so that the adapter does not show this information in the returned error message - see example message below ?
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: Schema MaintenanceOrderByIDQuery_sync.xsd not found in E:\usr\sap\DPI\DVEBMGS40\j2ee\cluster\server0\validation\schema\f7cd3b50a87411e08830ed9d0af006a5\urnstw.contractor.wfm.workorderretrieval\MaintenanceOrderByIDQueryRequest_Out\httpsap.comxiSAPGlobal20~Global\MaintenanceOrderByIDQuery_sync.xsd  (validation\schema)
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1041)
         at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: Schema Schema1.xsd not found in E:\usr\sap\DPI\DVEBMGS40\j2ee\cluster\server0\validation\schema\f7cd3b50a87411e08830ed9d0af006a5\urnstw.contractor.wfm.workorderretrieval\MaintenanceOrderByIDQueryRequest_Out\httpsap.comxiEA-APPLSEGlobal\Schema1.xsd  (validation\schema)
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1041)

    Hi,
    We are having the same problem, so you are not alone.
    I had an extensive call with Azure premium support and we where able to determine that:
    - Nothing is missing or in the wrong place in my exported .xml file.
    - Any changes to the VNET's using the web gui interface of https://manage.windowsazure.com is not possible when you have dns servers and use an gateway
    - You can download the .xml configuration file of the network and make manual changes to it, then import it again , to add/remove dns servers and or subnet's. 
    I am currently waiting for an solution,  i have let them lower the urgency from A to B (because i can make changes trough xml) and responded to the next support contact (saying he will continue with the issue) that the problems seems to be with azure and
    he should speak with the previous person helping me.  I have not heard from Azure support since.
    SR Number:115021812414226
    Open on:02/18/2015 09:28
    > There are networks with and without gateways created and the issue is happening on all the networks.
    > We are unable to add or remove the DNS servers. (by web gui)
    > Also not able to add or remove any subnets. (by web gui)
    > Every time the error message is same but the DNS server name is different. (from another subnet then the one we are changing)
    > Created CRI- 3405931, but they said it will need WATS team.
    > Confirmed with WATS engineer as well and moving case to WATS.
    > Cx agreed to lower the severity of the case as they are able to make changes through the network configuration file.
    > But they still want to get this resolved soon.
    > Agreed and dropped off, reducing severity to B 24/7.
    I hope microsoft is going to resolve this soon, as i do not want to edit my xml for little things like adding a subnet all the time. I have requested an status update in the issue.
    Should anyone have more information on this, please share it here.

  • XML Schema validation Error

    Hi,
    Have a scenerio in which consecutive mapping needs to be done.The first mapping is a Java Mapping in which XML schema validation needs to be done.
    If XML Schema validation is sucessful(Mapping 1),then graphical message mapping(MM_Entry) needs to be performed.
    I have uploded a jar file in imported Archives which contains
    1)Schema file(inputSchema.xsd): This is an XSD file which is generated in XI....XSD fomat of Source message type
    2) The java Class file
    Following are few lines of code for better idea:
    public class SAXParser implements StreamTransformation {
    public void execute(InputStream input, OutputStream output) throws StreamTransformationException {
    SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
    InputStream mySchema = this.getClass().getClassLoader().getResourceAsStream("inputSchema.xsd");
    SAXParser saxParser = saxParserFactory.newSAXParser();
    saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
    saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",mySchema);
    saxParser.parse(input, new HandlerBase());
    After above step(parsing),input is copied to output and streams are closed as follows:
    byte[] buf = new byte[4096];
    for(int len=-1;(len=input.read(buf))!=-1;)
    output.write(buf,0,len);
    input.close();
    output.close();
    After sending correct source message from input ,i am getting following error:
    Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_Entry_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Parsing an empty source. Root element expected!

    Daniel,
    As I've said, I've used it successfully in PI 7.0 SP10.
    You're right about documentation, it says that by default, Java 1.4.2 mark() and reset() methods of InputStream class are not fully implemented (mark() would do nothing and reset() would always throw an IOException). And that would be the expected behavior...
    ...unless the SAP developers have extended the InputStream class to include actual implementatios to the mark() and reset() methods.
    I'm not saying that they have, but it would be possible, wouldn't it?
    It does work, after all...
    Regards,
    Henrique.

  • XML Schema validation error in network configuration. Missing DnsRef

    When ever we try to make changes to a Virtual network we receive
    XML Schema validation
    error in network configuration. Missing DnsRef
    We can't make any changes to the Virtual network.
    The DNS ref exists as well.
    Considering exporting network config and re-importing however we have a lot of networks configured and want to be sure this is the correct way to proceed.
    Any feedback much appreciated.
    Thanks

    Hi,
    We are having the same problem, so you are not alone.
    I had an extensive call with Azure premium support and we where able to determine that:
    - Nothing is missing or in the wrong place in my exported .xml file.
    - Any changes to the VNET's using the web gui interface of https://manage.windowsazure.com is not possible when you have dns servers and use an gateway
    - You can download the .xml configuration file of the network and make manual changes to it, then import it again , to add/remove dns servers and or subnet's. 
    I am currently waiting for an solution,  i have let them lower the urgency from A to B (because i can make changes trough xml) and responded to the next support contact (saying he will continue with the issue) that the problems seems to be with azure and
    he should speak with the previous person helping me.  I have not heard from Azure support since.
    SR Number:115021812414226
    Open on:02/18/2015 09:28
    > There are networks with and without gateways created and the issue is happening on all the networks.
    > We are unable to add or remove the DNS servers. (by web gui)
    > Also not able to add or remove any subnets. (by web gui)
    > Every time the error message is same but the DNS server name is different. (from another subnet then the one we are changing)
    > Created CRI- 3405931, but they said it will need WATS team.
    > Confirmed with WATS engineer as well and moving case to WATS.
    > Cx agreed to lower the severity of the case as they are able to make changes through the network configuration file.
    > But they still want to get this resolved soon.
    > Agreed and dropped off, reducing severity to B 24/7.
    I hope microsoft is going to resolve this soon, as i do not want to edit my xml for little things like adding a subnet all the time. I have requested an status update in the issue.
    Should anyone have more information on this, please share it here.

  • This XML file does not appear to have any style information...

    hello,
    i am a new oracle spatial developer and also i am new in XML. i want to see the demos in oracle 10g enterprise edition. i imported the necessary dump files and i created the necessary user defined as mvdemo/mvdemo. when i want to see the demos in mapviewer, i come accross this error:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
         <oms_error>
    Message:[XMLHelper] xml eşleme isteği incelenirken hata.
    Fri Feb 25 01:37:39 EET 2005
    Severity: 0
    Description:
    Message:[XMLHelper] xml eşleme isteğinde geçersiz geometri.
    Fri Feb 25 01:37:39 EET 2005
    Severity: 0
    Description:
    Message:GML Geometry type Point not suppoted.
    Description:
         at oracle.sdovis.JSDOGeometry.fromNodeToGeometry(JSDOGeometry.java:3185)
         at oracle.lbs.mapserver.core.XMLHelper4Mapper.parseGeoFeature(XMLHelper4Mapper.java:712)
         at oracle.lbs.mapserver.core.XMLHelper4Mapper.convert(XMLHelper4Mapper.java:223)
         at oracle.lbs.mapserver.core.XMLHelper4Mapper.convert(XMLHelper4Mapper.java:167)
         at oracle.lbs.mapserver.oms.getMapRequest(oms.java:678)
         at oracle.lbs.mapserver.oms.doPost(oms.java:314)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    </oms_error>
    for now, i dont know what to do.. if someone recommend any useful idea, i would be greatful.
    best regards..

    hello,
    thank you for your reply..
    i made some changes and i dont see the errors that i mentioned above any more. but still some problems..
    firstly, i decided to change the settings in the mapViewerConfig.xml file in order to add a new datasource. i copied it and that is the reason why you see the '!' in my explanation. the new situation in the mapViewerConfig.xml file like this:
    <map_data_source name="mvdemo"
    jdbc_host="c-0y5wp0jvd2bf8"
    jdbc_sid="orcl"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="nzKVD/KFZYkGc0uF7EL7/vPibuAPpQ9j"
    jdbc_mode="thin"
    number_of_mappers="3"
    />
    "c-0y5wp0jvd2bf8" is my computer name. jdbc password was encrypted when i started the mapviewer. this is the new screen of the mapviewer after starting:
    05/03/01 17:49:58 INFO [oracle.lbs.mapserver.oms] oms root path: C:\mapviewer10
    12_qs\mv1012qs\oc4j\j2ee\home\applications\mapviewer\web\
    05/03/01 17:49:58 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
    initialized
    05/03/01 17:49:58 INFO [oracle.lbs.mapserver.core.MapperConfig] using default co
    nfig file: C:\mapviewer1012_qs\mv1012qs\oc4j\j2ee\home\applications\mapviewer\we
    b\WEB-INF\conf\mapViewerConfig.xml
    05/03/01 17:49:58 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL map
    maker instances.
    05/03/01 17:50:17 INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Regi
    on=SDOVIS_DATA.
    05/03/01 17:50:17 INFO [oracle.sdovis.CacheMgr2] max_cache_size=32 MB.
    05/03/01 17:50:17 INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_mvdemo
    _jdbc:oracle:thin:@c-0y5wp0jvd2bf8:1521:orcl created in cache.
    05/03/01 17:50:17 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/03/01 17:50:17 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/03/01 17:50:17 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper ins
    tance to the pool [data src=mvdemo]
    05/03/01 17:50:17 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling th
    read started.
    05/03/01 17:50:17 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started.
    when i open the page ( http://localhost:8888/mapviewer/ ) and press the submit button of the "sample map request" section to see the result of the demo, i come accross this error:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
         <oms_error>
    Message:[XMLHelper] xml eşleme isteği incelenirken hata.
    Tue Mar 01 17:53:51 EET 2005
    Severity: 0
    Description:
    Message:[XMLHelper] xml eşleme isteğinde geçersiz geometri.
    Tue Mar 01 17:53:51 EET 2005
    Severity: 0
    Description:
    Message:GML Geometry type Point not suppoted.
    Description:
         at oracle.sdovis.JSDOGeometry.fromNodeToGeometry(JSDOGeometry.java:3185)
         at oracle.lbs.mapserver.core.XMLHelper4Mapper.parseGeoFeature(XMLHelper4Mapper.java:712)
         at oracle.lbs.mapserver.core.XMLHelper4Mapper.convert(XMLHelper4Mapper.java:223)
         at oracle.lbs.mapserver.core.XMLHelper4Mapper.convert(XMLHelper4Mapper.java:167)
         at oracle.lbs.mapserver.oms.getMapRequest(oms.java:678)
         at oracle.lbs.mapserver.oms.doPost(oms.java:314)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    </oms_error>
    in addition, i use firefox as my default browser. however, i tried it in the iexplorer also but gave the same error again.
    i look forward to taking a response. thank you very much for your care again.
    regards

  • XML Schema validation in JDeveloper 10.1.3.2.0 - is it namespace-aware?

    Hi everybody
    Look at the following simple xml schema:
    <?xml version="1.0" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="num" type="xsd:string"/>
    <xsd:element name="amount" type="xsd:integer"/>
    <xsd:element name="invoice">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="num"/>
    <xsd:element ref="amount"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="invoices">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="xsd:invoice" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    When I open it in JDeveloper 10.1.3.2.0 and choose "Validate XML", validation executes without errors.
    In spite of bad namespace declaration in <xsd:element ref="xsd:invoice" ...
    For example, in XML Spy validation of this schema ends with error: "'xsd:invoice' must refer to an existing element".
    If there any option on JDeveloper to turn on namespace-aware validation to prevent the above situation?

    hi
    Indeed, the "Validate XML" menu option only shows "Validate XML: 0 errors, 0 warnings.".
    But, if you look at the "Design" tab for your schema, the "invoices" element node contains an "xsd:invoice" sequence shown in red. If you change "xsd:invoice" to "invoice" this becomes white and the node can be expanded.
    One other thing, registering an XML Schema in JDeveloper like the one you posted, isn't possible without an "oracle.xml.parser.schema.XSDException" (without further details).
    regards
    Jan Vervecken

  • Why to use xml ,sax api ,?

    Dear friends
    1> Can u please tell me why to use xml instead of html. When the developement is
    easy & fast in html, then why peoples are going for xml.
    2> Please tell me role of SAX api in relevence to XML.
    3>What is difference between DOM & SAX.?
    If possible spare few seconds to write to me.
    regds
    shiv
    Email: [email protected]

    1> Can u please tell me why to use xml instead of
    html. When the developement is
    easy & fast in html, then why peoples are going for
    xml.
    HTML is only for presentations like web pages. XML, however, is use to define a new language like XHTML that is for presentations. But there are XML based language that is not for presentation, for example, XLink which allows elements to be inserted into XML documents in order to create and describe links between resources. All in all, XML is a much powerful language than HTML.
    2> Please tell me role of SAX api in relevence to
    XML.
    Simplely put, SAX is a XML parser like DOM that is used to process XML data.
    3>What is difference between DOM & SAX.?
    Take a look at this: http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXPIntro.html
    Hope this help.

Maybe you are looking for

  • Logic is crashing when I hit save. Starting to panic! :)

    Hi all, I think there must be a direct correlation between computer problems and deadlines. This one's making me panic because I'm dead in the water today, yet HAVE to get a bunch of things done for a client by tomorrow. *deep breath....breathe...bre

  • Mac pro / Laserjet 4 / Os 10.6 - how do I make the printer work?

    Hi, I have a 2008 Mac Pro running 10.6.8 and an ancient yet still thriving HP Laserjet 4 that I was  using over an ethernet/Jetdirect connection with my G5 for years - how do I get them to talk to each other? I'm running the printer connection throug

  • How do you "unsuspend" a suspended job in GRID?

    Hello all, I have a GRID job that is running a RMAN backup, an incremental level=1 backup. This job runs at the end of each day. For several days now...it just fails with the error message: "An execution in the current run or one of the previous runs

  • Web Analysis Question

    Is there a way in Web Analysis to only show selected amounts of data from a spreadhseet on a chart?

  • SSRS 2012 SP1 on SharePoint 2013

    I've tried to install SSRS 2013 on my SP2013 tenant. First I've applied SP1 for SQL Server 2012 then I was able to create a SSRS Service application. Good. But now I haven't any RS content types ! I've searched all day on iternet for solutions, tried