Error::cvc-elt.4.2 -- namespaces

Hi all,
I have this entry message for a web service (deployed in BPEL 10.1.3.1):
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<SOAP-ENV:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:hdr="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<UsernameToken>
<Username>XXXX</Username>
<Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</Password>
</UsernameToken>
</Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<Dummy_Input xmlns="http://xmlnssns.oracle.com/DummyTypes" xmlns:s01="http://xmlnssns.oracle.com/DummyTypes">
<InputData xsi:type="s01:InputData" xmlns:s="http://www.w3.org/2001/XMLSchema">
<CodeEnt xsi:type="s:string">XXXX</CodeEnt>
<NumUt xsi:type="s:decimal">397143067</NumUt>
</InputData>
</Dummy_Input>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
If I have the property VlidateXML=True, gives me the folowing error:
Invalid xml document.
According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-elt.4.2: Cannot resolve 's:string' to a type definition for element 'CodeEnt'.
Error::cvc-elt.4.2: Cannot resolve 's:decimal' to a type definition for element 'NumUt '.
Please make sure that the xml document is valid against your schemas.
If the property VlidateXML=False runs well.
Can you help me to understand what is the error in the xml?
Thank you in advance
CD
Dummy.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://xmlnssns.oracle.com/DummyTypes"
targetNamespace="http://xmlnssns.oracle.com/DummyTypes"
elementFormDefault="qualified">
<xsd:element name="Dummy_Input" type="Dummy_Input"/>
<xsd:complexType name="Dummy_Input">
<xsd:sequence>
<xsd:element name="InputData" type="InputData" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="InputData">
<xsd:sequence>
<xsd:element name="CodeEnt" type="xsd:string" minOccurs="1"/>
<xsd:element name="NumUt" type="xsd:decimal" minOccurs="0"
nillable="false"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

Try following entry message:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<SOAP-ENV:Header>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:hdr="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<UsernameToken>
<Username>XXXX</Username>
<Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</Password>
</UsernameToken>
</Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<Dummy_Input xmlns="http://xmlnssns.oracle.com/DummyTypes" xmlns:s01="http://xmlnssns.oracle.com/DummyTypes">
<InputData xsi:type="s01:InputData" xmlns:s="http://www.w3.org/2001/XMLSchema">
<CodeEnt>XXXX</CodeEnt>
<NumUt>397143067</NumUt>
</InputData>
</Dummy_Input>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Regards

Similar Messages

  • Validation error: cvc-elt.1: Cannot find the declaration of element

    I use JAXP to do XML Parsing and validation. I use DOM and not SAX.
    My code is as follows:
    SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
    File schemaLocation = new File("C:\\config\\JMS_properties.xsd");
    Schema schema = schemaFactory.newSchema(schemaLocation);
    // Create the validator
    Validator validator = schema.newValidator();
    // Add an error handler to the validator
    JMSErrorHandler errorHandler = new JMSErrorHandler();
    validator.setErrorHandler(errorHandler);
    // Create the dom factory
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    // Set the namespace property
    domFactory.setNamespaceAware(true);
    // Create the document builder
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Parse the xml file
    Document doc = builder.parse(xmlFile);
    // Create the dom source and destination
    // The destination will contain the doc augmented with the default attribute/element
    DOMSource source = new DOMSource(doc);
    DOMResult result = new DOMResult();
    // Validate and augment the source
    validator.validate(source, result);
    // Error checking
    if ( errorHandler.validationError == true ) {
        // errors occured during the parsing
        System.out.println("XML file is not valid");
        System.exit(1);
    // Get the augmented document
    this.augmented = (Document) result.getNode();When executing my code, I got:
    Validation error: cvc-elt.1: Cannot find the declaration of element 'JMSProperties'
    But the xml file has this element in it so I do not understand the meaning of that error.
    ??????

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • Error cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'

    Hi! Ive got an error: cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'
    My WSDL file was generated by PI.
    After import this WSDL-file to my Business Process to section Service Interfaces - I've got this error.
    But, it seems to be OK when I created the project, create a model by choosing the WSDL-file. All validators do not give me any error.
    Whats wrong?!

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • Problem in creating Data/Service in FlashBuilder 4 beta 2 with this error .cvc-elt.1: Cannot find the declaration of element 'model'

    hi
    i have a problem after installing flashBuilder 4 beta2 .
    when i want to create Data/Service with BlazeDs and when i click on button finish
    this error shown and I can't do anything with it .
    in flashBuilder beta1 it's work perfect .
    if any one in thereand know why?
    please help me
    ERROR: XML parse error : Error on line 1 of documen : cvc-elt.1:Cannot find declaration of element 'model'. Nested exeption:Cannot find declaration of element 'model'.
    thanks

    Hi,
    Thanks for your feedback
    Can you attach your sample project and provide details on the Flash Builder and BlazeDS builds you are using?
    Also add your vote to http://bugs.adobe.com/jira/browse/FB-23479 a similar known issue
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Cvc-elt.1: Cannot find the declaration of element 'html'

    I was getting an error when I was trying to validate the following XML file as below:
    cvc-elt.1: Cannot find the declaration of element 'html'
    However the error below goes away when I type in
    <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
    instead of "<html xmlns="http://www.w3.org/1999/xhtml"
    I am not sure why the second way works. I am not familiar with namespaces, so if anyone could tell me why the second approach works, i would be grateful. Or, is there any other reason also that makes the error appear..Please demystify. Thanks very much
    The error:
    *cvc-elt.1: Cannot find the declaration of element 'html'*
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    *<html xmlns="http://www.w3.org/1999/xhtml"*      xmlns:xhtml="http://www.w3.org/2002/Xforms"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www/w3.org/2001/XMLSchema-instance"
         xmlns:xxforms="http://orbeon.org/oxf/xml/xform"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:fe="http://example.com/form/xform"
         xmlns:f="http://orbeon.org/oxf/xml/formatting"
         xmlns:xforms="http://w3.org/2002/xforms">
                   <head>
                        <title> ProtoType Complaint Form - 2 </title>
                        <!-- We are going to use an external CSS file here -->
                        <!-- <link rel="stylesheet" type="text/css" href="my_styles.css"/> -->
                        <!-- Let us use an Internal Style sheet as well -->
                        <!-- Let us use or adapt the Form Editor CSS in the form as suggested by Mike, Dan, Intalio -->
                        <!--We are going to be using CSS Rules:
                        A CSS rule comprises of a selector, and a property:value pair (declaration). -->
                        <!--
                        selector:
                             how content can be selected for styling, for example, the selector for a level-one
                        heading element is h1; selectors include element name, ID and class
                        property:
                             how a presentation attribute of an element can be targeted, for example, the font-family
                             property refers to the typeface content should be set in
                        value:
                             the values permitted for each property; for example, a colour can be set using a keyword:
                             red, green, blue; or a hexadecimal code: #f00, #0f0, #00f
                        -->
                        <!--
                        We are going to use Solitary ID selectors:
                             those that can apply to any type of element and have the simple syntax
                             #idname, for example, #title. This selector selects the single element on a page
                             that has an ID of "title".
                        -->
                        <!-- SideNote: Keyword - "CSS pseudo elements" -->          
                        <style type="text/css">
                        <!-- #xforms_cntrl_COMPLAINT_TYPE {position : absolute; top : 30; left : 270; width : 195; height : 29; margin : 0; padding : 0;} -->
                             h1
                                  font: bold 20pt helvetica,verdana;
                             h2
                                  font: bold 18pt helvetica,verdana;
                             h3
                                  font: bold 16pt helvetica,verdana;
                             /* blue background for Group labels */
                             /* h4 { font: bold 14pt helvetica,verdana; background-color: #1078E1; } */
                             h4
                                  font: bold 14pt helvetica,verdana;
                             .xforms-group {
                             /* border: 10px; */
                             border: thin solid #0000FF;
                             background-color: #ffffcc;
                             PADDING-RIGHT: 0.5em;
                             DISPLAY: block;
                             margin-bottom:5px;
                             /* display: table-row; */
              .xforms-label { font-weight: bold }
                        </style>
                        <!-- define the form model -->
                        <!-- We will constrain instance data by specifying an XML schema -->
                        <!-- xforms:model starts here -->
                        <xforms:model schema="test2.xform.xsd" id="COMPLAINT_DATA">
                             <!-- Task input -->
                             <xforms:instance id="taskinput">
                                  <fe:input>
                                       <fe:Arrestee_Last_Name/>
                                       <fe:Arrestee_First_Name/>
                                  </fe:input>
                             </xforms:instance>
                                  <xforms:instance id="taskmetadata">
                                  <!-- if I need to populate some instance using an XSL stylesheet and eXist ?? -->
                                       <taskmetadata/>
                                  </xforms:instance>
                             <!-- Task Output -->
                             <xforms:instance id="taskoutput">
                                  <fe:output>
                                       <fe:Arrestee_Last_Name/>
                             <fe:Arrestee_First_Name/>
                                  </fe:output>
                             </xforms:instance>     
                             <!-- the xforms-ready event is used here to trigger setValue -->
                             <!-- We set Instance Values with the xforms:setvalue Action -->
                             <xforms:action ev:event="xforms-ready">
                                  <xforms:action xforms:if="string(instance('taskoutput')/@saved) != 'true'">
                                       <xforms:setValue ref="instance('taskoutput')/fe:Arrestee_Last_Name" value="instance('taskinput')/fe:Arrestee_Last_Name" />
                                       <xforms:setValue ref="instance('taskoutput')/fe:Arrestee_First_Name" value="instance('taskinput')/fe:Arrestee_First_Name" />
                                  </xforms:action>
                             </xforms:action>
                             <!-- can I use type="xsd:string ?? -->
                             <xforms:bind nodeset="instance('taskoutput')/fe::Arrestee_Last_Name" relevant="true()" type="xs:anyURI" />
                             <xforms:bind nodeset="instance('taskoutput')/fe:Arrestee_First_Name" relevant="true()" type="xs:anyURI" />     
                        </xforms:model> <!-- xforms:model ends here -->
                   </head>     
              <body>
                        <h3>
                             <center>
                                  <font color="blue">
                                       Criminal Complaint <br></br>
                                  </font>
                             </center>
                        </h3>          
                        <!-- Use Later??
                        <div id="intalio-bpms-form">
                             <div id="xforms_cntrl_output105">
                                  <xforms:output ref="instance('taskoutput')/fe:output105"/>
                             <div>
                        <div> -->
                        <xforms:group appearance="full">
                        <p class="proto">
                             <xforms:input model="COMPLAINT_DATA" ref="instance('taskinput')/fe:input/fe:Arrestee_Last_Name">
                                  <xforms:label>Arrestee Last Name: </xforms:label>
                             </xforms:input>     
                        </p>
                        <p class="proto">
                             <xforms:input model="COMPLAINT_DATA" ref="instance('taskinput')/fe:input/fe:Arrestee_First_Name">
                                  <xforms:label>Arrestee First Name: </xforms:label>
                             </xforms:input>     
                        </p>
                        </xforms:group>     
              </body>
         </html>

    Though this is not my area, you can have a look at this thread which may help you
    [Re: XML inputs in a MII transaction to be used as a Web Service call|XML inputs in a MII transaction to be used as a Web Service call;
    thanks
    G. Lakshmipathi

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

  • Problem with xerces2 J (cvc-elt.1: Cannot find the declaration of element)

    cvc-elt.1: Cannot find the declaration of element 'Unternehmen'.
    Can anyone help me to get this problem solved?
    I am using xerces to validate a xml with a xsd scheme and i think there must be a error within the scheme. But the XSD Validator on w3c.org says that the xsd is fine !? :-o
    scheme (xsd)
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <xsd:complexType name="PersonTyp" abstract="true">
         <xsd:sequence>
           <xsd:element name="Vorname" type="xsd:string" maxOccurs="3"/>
           <xsd:element name="Name" type="xsd:string"/>
           <xsd:element name="Geburtsdatum" type="xsd:date"/>
         </xsd:sequence>
       </xsd:complexType>
       <xsd:complexType name="MitarbeiterTyp">
         <xsd:complexContent>
           <xsd:extension base="PersonTyp">
             <xsd:sequence>
               <xsd:element name="Gehalt">
                 <xsd:simpleType>
                   <xsd:restriction base="xsd:float">
                     <xsd:minInclusive value="10000"/>
                   </xsd:restriction>
                 </xsd:simpleType>
               </xsd:element>
             </xsd:sequence>
           </xsd:extension>
         </xsd:complexContent>
       </xsd:complexType>
       <xsd:element name="Unternehmen">
         <xsd:complexType>
           <xsd:sequence>
             <xsd:element name="Mitarbeiter" type="MitarbeiterTyp"
               maxOccurs="unbounded"/>
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
    </xsd:schema>xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Unternehmen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="Beispiel.xsd">
    <Mitarbeiter>
      <Vorname>Hagen</Vorname>
      <Vorname>Dieter</Vorname>
      <Name>Becker</Name>
      <Geburtsdatum>1967-08-13</Geburtsdatum>
      <Gehalt>39512.34</Gehalt>
    </Mitarbeiter>
    <Mitarbeiter>
      <Vorname>Jutta</Vorname>
      <Name>Stehl</Name>
      <Geburtsdatum>1976-09-11</Geburtsdatum>
      <Gehalt>42500.34</Gehalt>
    </Mitarbeiter>
    </Unternehmen>

    forget about this thread.
    i have read a chapter of http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html this document and found out that i missed a statement within my java code.
    Next, you need to configure the parser factory to generate a parser that is namespace-aware parser, as well as validating:
      SAXParserFactory factory = SAXParserFactory.newInstance();
      factory.setNamespaceAware(true);
      factory.setValidating(true); I MISSED THE factory.setNamespaceAware(true); LINE!!!!

  • SAXParseException: cvc-elt.1 - XSD validation

    Hello,
    I'm trying to validate some generated XML against an XSD. The error I'm receiving is:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'user'.
    The generated XML starts like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <user>
       <userName>...The start of the XSD looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:element name="user">
    ...The Java code I'm using is this:
    DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
    documentBuilderFactory.setNamespaceAware(true);
    DocumentBuilder builder = documentBuilderFactory.newDocumentBuilder();
    Document document = builder.parse(new ByteArrayInputStream(bytes));
    SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = schemaFactory.newSchema(url);
    Validator validator = schema.newValidator();
    validator.validate(new DOMSource(document));... where "bytes" is a byte array containing the XML that I have generated and "url" is a URL object containing the location of my XSD file.
    I'm using Java version 1.6.0_12.
    Have had a look elsewhere for reports of similar error messages but couldn't find anything definitive on what the problem is or any suggested solution.
    Thanks for any assistance,
    Von Entenduck

    Not sure what your version of OIM is, but I have seen this in R2PS1 even though all the OOTB jobs and custom jobs are working fine. So I guess this can be safetly ignored.
    -Bikash

  • OSB: cvc-elt.1 , cvc-elt.4.2

    Good day!
    I started to continue developing Oracle Service Bus project installing it on weblogic server 10.3.5. (I recently installed wls and did not test on any existing projects yet).
    OEPE shows me hundreds of errors like following:
    cvc-elt.1: Cannot find the declaration of element 'object-persistence'.
    cvc-elt.4.2: Cannot resolve 'base-expression' to a type definition for element 'base'.
    cvc-elt.4.2: Cannot resolve 'column' to a type definition for element 'field'.
    All of them are in or-mappings.xml files.
    What should i do to fix it?
    Edited by: 917050 on 26.02.2012 7:07

    does there also occure when you create a new configuration project and import these existing projects in it ?
    clean compile on these project, does that help ?

  • Org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of ..

    Hello,
    I try to validate a DOM Document using:
    SchemaFactory factory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Source schemaFile=new StreamSource("myschema.xsd");
    schema schema=factory.newSchema(schemaFile);
    Validator validator=schema.newValidator();
    validator.validate(new DOMSource(document));
    I don't validate using the parse(File) method, because I already have a DOM Tree in memory.
    BUT now I receive the following error:
    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'catalogue'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)
    at org.apache.xerces.jaxp.validation.XMLSchemaValidator.validate(Unknown Source)
    at javax.xml.validation.Validator.validate(Unknown Source)
    catalogue is my rootElement.
    I'm using jdk 1.4.
    Does somebody know how to solve this?
    Thank you!
    Katja

    extra information
    a part of the XSD schema:
    <?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">     <xsd:element name="catalogue">    <xsd:complexType>      <xsd:sequence>        <xsd:element ref="date_created"/>        <xsd:element ref="date_modified"/>        <xsd:element ref="comment"/>        <xsd:element ref="books"/>        <xsd:element ref="cds"/>      </xsd:sequence>    </xsd:complexType>  </xsd:element>the code I'll using:
    public class DomWriterWithValidation extends AppBo{
         public static void main(String[] args) {
              DocumentBuilderFactory dbFactory=DocumentBuilderFactory.newInstance();
              dbFactory.setNamespaceAware(true);
              final String OUR_SCHEMA="C:/_develop/asja/lib/local/domxmlliblocal/properties/xmlfiles/catalogueBig.xsd";
              SchemaFactory schemaFactory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              try{
                   Source schemaFile=new StreamSource(new FileInputStream(OUR_SCHEMA));
                   Schema schema=schemaFactory.newSchema(schemaFile);
                   Validator validator=schema.newValidator();
                   DocumentBuilder domBuilder=dbFactory.newDocumentBuilder();
                   File file=new File("C: /xmlfiles/catalogueDOMW1.xml");
                   Document document=domBuilder.newDocument();
                   Catalogue catalogue=getCatalogue(10,10);
                   writeXMLFile(file,catalogue,document,validator);
              }catch (Exception e) {
                   e.printStackTrace();
    public static void writeXMLFile(File file,Catalogue catalogue,Document document,Validator validator)throws SAXException{
              //1. BUILDING THE DOM TREE
              Element rootElement=document.createElement("catalogue");
              document.appendChild(rootElement);
              Element dateCreated=document.createElement("date_created");
              rootElement.appendChild(cds);
              OutputStream outputstream=null;               
                   try{
                        //2. WRITE THE DOM TREE TO AN XML FILE
                   TransformerFactory transformerFactory = TransformerFactory.newInstance();
                      Transformer transformer = transformerFactory.newTransformer();
                      transformer.setOutputProperty(OutputKeys.METHOD,"xml");
                      transformer.setOutputProperty(OutputKeys.INDENT,"yes");
                      outputstream=   new FileOutputStream(file.getPath());
                      /*With VALIDATION */
                        validator.validate(new DOMSource(document));
                   /*With VALIDATION */
                      transformer.transform(new DOMSource(document), new StreamResult(outputstream));      
              }catch (SAXException saxException){
                        System.out.println("The XML-file you are trying to create is not valid");
                        throw saxException;
              catch(Exception e){
                   e.printStackTrace();
              }finally{
                   try{
                   outputstream.close();
                   }catch (IOException ioException){
                        ioException.printStackTrace();
                        throw new RuntimeException(ioException);
    }A little part of the valid XML file I want to create:
    <?xml version="1.0" encoding="UTF-8"?><catalogue><date_created><day>1</day><month>7</month><year>2008</year></date_created><date_modified><day>1</day><month>7</month><year>2008</year></date_modified>

  • [Application Update Error] - The element 'Field' in namespace 'urn:deployment-manifest-schema' cannot contain text.

    Hello,
    I developed a custom SharePoint 2013 Application (SharePoint hosted) and everything works fine. If I tried to update the application and I ran into the following error:
    The element 'Field' in namespace 'urn:deployment-manifest-schema' cannot contain text. List
    of possible elements expected: any element in namespace '##any'.
    If I redeploy the application (without update, just a new instance) everything works fine. Only the update scenario throws the exception above. 
    I tried different things to solve that issue:
    I recreated the feature
    I checked all the custom field definitions, content types and lists inside the app. 
    I tried different O365 tenants and a SharePoint 2013 On Premise Development Server (Same problem on all systems)
    Can anybody give me a tip to solve that problem?
    Thanks in advance

    Hi,
    According to your description, when you try to update your SharePoint Hosted App, an error occurs.
    To narrow down the issue, I would suggest you create a simple app without other components in it, deploy it and then update it to see if this error will still occur.
    Once you get a workable app without the update issue, then you can add other customizations one after one in this app and perform the update. By doing this, it would
    be easier to find out the root cause.
    Anyway, you can take a look at the link below about updating app for more information:
    http://msdn.microsoft.com/en-us/library/office/dn265910(v=office.15).aspx
    Feel free to reply if there any progress.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Error when creating new DFS Namespace

    Hello, 
    I have 2 new server 2012 r2 VM files servers (FS1 and FS2) which are operating in a failover cluster (FS-CL1). There is a single clustered disk (E:) which contains the file shares and is passed back and forth between the file servers as it should depending
    on availability. 
    I'm attempting to create a namespace such that instead of having my users browse \\fs-cl1\share1 to connect to the shares located on the clustered disk, I'm hoping to achieve a domain based namespace (\\MYDOMAIN.COM\share1) using DFS Namespace. 
    When walking through the new dfs namespace wizard on either FS1 or FS2 I can create the share namespace fine if the share is located on the local disk C: of either machine. If I configure the namespace to point to a location on E: I'm prompted with an error:
    "\\MYDOMAIN.COM\share1: The namespace server \\FS1\share1 cannot be added. This shared resource does not exist"
    Any help would be great appreciated.
    Thanks.

    Hi Walsh,
    There is a single clustered disk (E:) which contains the file shares and is passed back and forth between the file servers as it should depending on availability
    Is this a shared disk between your virtual servers FS1 & FS2? Are these VM's running on hyper-v? Have you configured cluster between guest OS? Are you able to access the share using UNC manually from FS1 & FS2? Please provide
    more information regarding your setup.
    Thanks,
    Umesh.S.K

  • [svn:fx-trunk] 5893: Fixed compiler errors and updated to 2009 namespace w/ Spark controls (where applicable).

    Revision: 5893
    Author: [email protected]
    Date: 2009-04-02 16:30:46 -0700 (Thu, 02 Apr 2009)
    Log Message:
    Fixed compiler errors and updated to 2009 namespace w/ Spark controls (where applicable).
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/printing/examples/PrintDataGr idExample.mxml

  • Multi-Mapping Error after copying into new namespace

    Hi everybody,
    we got a BPM running using a multi-mapping.
    We decided to design new namespaces. After copying every IR object (datatype, message-type, mappings etc.) --> SXMB_MONI shows a mapping-error.
    But when I take the payload and test the mapping, everything is fine?
    Any ideas?
    Regards Mario

    Hi,
      If your payload has Messages tab remove that..and test the payload.
    Payload doesn't have any Messages tab.
    Just i have given example payload..this payload two strucures it will split into twofiles..and compare your payload should be like same
    <?xml version="1.0" encoding="UTF-8"?>
    <STRUCTURE>
    <EMP_DETAILS>
       <EMPNO>123<EMPNO>
       <EMPNAME>XYZ<EMPNAME>
    <EMP_DETAILS>
    <STUDENT_DET>
       <STUO>123<STUNO>
       <STUNAME>XYZ<STUNAME>
    </STUDENT_DET>
    <STRUCTURE>
    Regards,
    Venu.

  • Duplicate Symbol Error when using my own namespace

    Hi.
    When making a new project -> Command line util -> c++ tool, and then adding a new c++ file (includes the .h) to the project, I try making my own namespace like this:
    //ns.h
    #ifndef _TMSDF
    #define _TMSDF
    namespace testns
    int i;
    void somefunc();
    int retInt();
    #endif _TMSDF
    //ns.cpp
    #include "ns.h"
    namespace testns
    void somefunc()
    i = 10;
    int retInt()
    return i;
    and then the main, using the namespace:
    //main.cpp
    #include "ns.h"
    #include <iostream>
    using namespace testns;
    int main()
    somefunc();
    std::cout << "result: " << retInt() << std::endl;
    return 0;
    When hitting the "Build and go" the build results shows the following error:
    duplicate symbol testns::i in [path]/Debug/testname.build/Objects-normal/i386/ns0 and [path]/Debug/testname.build/Objects-normal/i386/main.o
    Tried searching and reading numerous posts, but can't seem to find the answer for this error. Any hints?
    Xcode vers.: 3.1.2
    Project properties:
    Arch.: 32/64-bit universal
    Base SDK: Mac OS X 10.5
    C++ compiler version: GCC 4.0
    Along with default project settings
    TIA.
    Christian

    chrcphdkny wrote:
    But I find it strange that my C++ books (by Savitch) doesn't mention this at all.
    Never heard of Savitch. Stroustrup knows a thing or two.
    I would assume that declarations go in the header file and implementations and instantiating variables is done in the cpp file.
    Not necessarily. With templates, everything goes in the headers.

Maybe you are looking for

  • Error Code 51.00.10

    I have an HP LaserJet 600. On occasion it gets confused and wants to load from tray 1 (Manual Tray). If I cycle the power it returns to a "Ready" Status and print everything in queue.  This usually happens with no error on the log. However, this time

  • Help needed in Export to Excel

    Hi All, I needed some clarifications/suggestions on using the export to excel. 1) When I click on export to excel, a <div> tag also gets exported. I came to know that this is becuse of selecting the "Enable Partail Page Refresh" to Yes. Now, I have p

  • PWLK400 unconfiguarable

    I bought a dual kit PWLE400 and PWLK400. On installing the utility I can see the PWLE and configure it easily, but the PWLK is not appearing on the utility. It is however plugged into the network and transmitting a wireless signal. On virgin media us

  • Web Services and method overloading

    I have a number of web services which was implemented with AXIS. These services uses method overloading which seems to be a problem in JDeveloper (9 as well as 10 preview) JDeveloper simply won't accept the wsdl, and wont regenerate the web service b

  • Useless Pantech Crux

    I have been all over Verizons website trying to find a link to the "live chat" forum so I can try to get some help in real time. Several friends told me that it's better to talk to someone online than in person in a store or even over the phone becau