Hi Joe


I tried it in XML Notepad, and there are 3 or 4 places where a Space is
Missing between a double quote and an attribute.

Lines 18, 30, and 31 had problems – in the code sample you gave.

XML Notepad tells you where the error is, and you have to open a text
editor to actually fix it on the line and position.  It even tells you that
you need a Space there.  J



Example:

            <element complexType="PSOType" dataType="string*"form="*qualified"
maxOccurs="1" minOccurs="0" name="pso"
targetNamespace="urn:oasis:names:tc:SPML:2:0" xmlType="true">



This should be corrected to:

            <element complexType="PSOType" dataType="string" form="qualified"
maxOccurs="1" minOccurs="0" name="pso"
targetNamespace="urn:oasis:names:tc:SPML:2:0" xmlType="true">



Hope this helps!



*From:* Action Request System discussion list(ARSList) [mailto:
arslist@ARSLIST.ORG] *On Behalf Of *Joe DeSouza
*Sent:* Thursday, June 07, 2012 5:46 PM
*To:* arslist@ARSLIST.ORG
*Subject:* XML expertise required...



**

If I try to validate this XML using a XML validation tool (Notepad++'s XML
Tools plugin), I get the following error...



XML parsing error at line 51: Extra content at the end of document.



Would someone with some time on hand give this a look and let me know what
might be wrong? I will appreciate your help very much..



Content of the XML document



+++++++++++++++++++ XML FILE CONTENTS+++++++++++++++++++

<?xml version="1.0" encoding="UTF-8"?>

<arDocMapping arDocVersion="11" externalSchema="" generateXsiType="false"
name="modifyResponse" schemaSource="imported">

    <formMapping>

        <form distinguishingKeyId="1" foreignKeyId="1"
formName="OIM:WSI:SPMLStagingInterface_NYCHHC" primaryKeyId="1"/>

        <element name="ROOT"
targetNamespace="urn:urn:oasis:names:tc:SPML:2:0">

            <element dataType="string" form="qualified"
maxOccurs="unbounded" minOccurs="0" name="errorMessage"
targetNamespace="urn:oasis:names:tc:SPML:2:0">

                <fieldMapping arFieldId="900001200" arFieldPart=""
defaultAttachName=""/>

            </element>

            <element complexType="CapabilityDataType" dataType="string"
default="" form="qualified" maxOccurs="unbounded" minOccurs="0"
name="capabilityData" targetNamespace="urn:oasis:names:tc:SPML:2:0"
xmlType="true">

                <fieldMapping arFieldId="900001203" arFieldPart=""
defaultAttachName=""/>

                <attribute dataType="boolean" form="unqualified"
name="mustUnderstand" targetNamespace="urn:oasis:names:tc:SPML:2:0"
use="optional">

                    <fieldMapping arFieldId="920001021" arFieldPart=""
defaultAttachName=""/>

                </attribute>

                <attribute dataType="anyURI" form="unqualified"
name="capabilityURI" targetNamespace="urn:oasis:names:tc:SPML:2:0"
use="optional">

                    <fieldMapping arFieldId="900001029" arFieldPart=""
defaultAttachName=""/>

                </attribute>

            </element>

            <element complexType="PSOType"
dataType="string"form="qualified" maxOccurs="1" minOccurs="0" name="pso"
targetNamespace="urn:oasis:names:tc:SPML:2:0" xmlType="true">

                <element complexType="PSOIdentifierType" dataType="string"
form="qualified" maxOccurs="1" minOccurs="1" name="psoID"
targetNamespace="urn:oasis:names:tc:SPML:2:0" xmlType="true">

                    <element form="qualified" maxOccurs="1" minOccurs="0"
name="containerID" targetNamespace="urn:oasis:names:tc:SPML:2:0"
xmlType="true"/>

                    <attribute dataType="string" form="unqualified"
name="targetID" targetNamespace="urn:oasis:names:tc:SPML:2:0"
use="optional">

                        <fieldMapping arFieldId="900001021" arFieldPart=""
defaultAttachName=""/>

                    </attribute>

                    <attribute dataType="string" form="unqualified"
name="ID" targetNamespace="urn:oasis:names:tc:SPML:2:0" use="optional">

                        <fieldMapping arFieldId="900001050" arFieldPart=""
defaultAttachName=""/>

                    </attribute>

                </element>

                <element complexType="ExtensibleType" dataType="string"
form="qualified" maxOccurs="1" minOccurs="0" name="data"
targetNamespace="urn:oasis:names:tc:SPML:2:0" xmlType="true"/>

                <element complexType="CapabilityDataType" dataType="string"
default="" form="qualified" maxOccurs="unbounded" minOccurs="0"
name="capabilityData" targetNamespace="urn:oasis:names:tc:SPML:2:0"
xmlType="true">

                    <attribute dataType="boolean" default=""
form="unqualified" name="mustUnderstand"
targetNamespace="urn:oasis:names:tc:SPML:2:0" use="optional"/>

                    <attribute dataType="anyURI"
form="unqualified"name="capabilityURI"targetNamespace="urn:oasis:names:tc:SPML:2:0"
use="optional"/>

                </element>

            </element>

            <attribute dataType="string" form="unqualified" name="status"
targetNamespace="urn:oasis:names:tc:SPML:2:0" use="required">

                <fieldMapping arFieldId="900001206" arFieldPart=""
defaultAttachName=""/>

            </attribute>

            <attribute dataType="ID" form="unqualified" name="requestID"
targetNamespace="urn:oasis:names:tc:SPML:2:0" use="optional">

                <fieldMapping arFieldId="900001002" arFieldPart=""
defaultAttachName=""/>

            </attribute>

            <attribute dataType="string" form="unqualified" name="error"
targetNamespace="urn:oasis:names:tc:SPML:2:0" use="optional">

                <fieldMapping arFieldId="900001201" arFieldPart=""
defaultAttachName=""/>

            </attribute>

            <attribute dataType="string" form="unqualified"
name="extendedError" targetNamespace="urn:oasis:names:tc:SPML:2:0"
use="optional">

                <fieldMapping arFieldId="900001202" arFieldPart=""
defaultAttachName=""/>

            </attribute>

            <attribute dataType="language" default="" form="unqualified"
name="locale" targetNamespace="urn:oasis:names:tc:SPML:2:0" use="optional">

                <fieldMapping arFieldId="900001004" arFieldPart=""
defaultAttachName=""/>

            </attribute>

        </element>

    </formMapping>

</arDocMapping>

+++++++++++++++++++ XML FILE CONTENTS+++++++++++++++++++



Cheers



Joe

_attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

Reply via email to