XML file within an XML element

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mayurnath
    New Member
    • Feb 2013
    • 1

    XML file within an XML element

    Hi,

    We have an XML file where an element starts with child XML.When I try to view schema in XML SPY I am getting an error as below.

    Character X is grammatically unexpected

    Reason : One of the following is expected--PI Target

    Details: XML Production : Production PI is not satisfied

    XML file Structure
    ------------------
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    Element 1
    Element 2
    Element 3
    <Repeat Element>
    <?xml version="1.0" encoding="UTF-8"?>
    Repeat Element1
    Repeat Element2
    </Repeat Element>
    Element 1
    Element 2
    Element 3
    <Repeat Element>
    <?xml version="1.0" encoding="UTF-8"?>
    Repeat Element1
    Repeat Element2 
    </Repeat Element> and son
    Kindly let me know the fix to view the schema in XML spy

    Thanks
    Mayur
    Last edited by Dormilich; Feb 20 '13, 07:20 AM. Reason: Please use [CODE] [/CODE] tags when posting code.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    for starters, there can be only one xml processing instruction (<?xml) and you need a single root element.

    Comment

    Working...