Click here to Skip to main content
14,487,186 members
   

XML / XSL

 
GeneralRe: Performance issue in XSL processing Pin
praveen3g9-Jun-12 0:07
Memberpraveen3g9-Jun-12 0:07 
GeneralRe: Performance issue in XSL processing Pin
Sasha Laurel18-Jul-12 13:11
MemberSasha Laurel18-Jul-12 13:11 
RantRe: Performance issue in XSL processing Pin
jinzai17-Jul-14 13:37
Memberjinzai17-Jul-14 13:37 
QuestionA way to view and edit a xml file in the web browser Pin
Member 879241431-May-12 4:17
MemberMember 879241431-May-12 4:17 
AnswerRe: A way to view and edit a xml file in the web browser Pin
Jim Meadors7-Jun-12 19:30
MemberJim Meadors7-Jun-12 19:30 
AnswerRe: A way to view and edit a xml file in the web browser Pin
Ger Hayden22-Jul-12 8:24
MemberGer Hayden22-Jul-12 8:24 
Questiona free xml tool to acquire xpath Pin
Qinbo ZHOU29-May-12 19:38
MemberQinbo ZHOU29-May-12 19:38 
QuestionXML Schema problem Pin
The_Infinite26-Apr-12 23:42
MemberThe_Infinite26-Apr-12 23:42 
Hello. Im trying to create an xml schema that can capture the following behavior:

1. <info> element should be the first inside <root>
2. <ParamA>, <ParamB>, <ParamC>, <ParamD>, and <ParamE> are optional, should appear after the <info> element and can appear in any order.

The following xml are valid:

<root>
  <info></info>
  <ParamA></ParamA>
  <ParamB></ParamB>
  <ParamC></ParamC>
  <ParamD></ParamD>
  <ParamE></ParamE>
</root>

OR

<root>
  <info></info>
  <ParamB></ParamB><!--Interchangeable with other Param-->
  <ParamD></ParamD><!--Interchangeable with other Param-->
  <ParamC></ParamC><!--Interchangeable with other Param-->
  <ParamA></ParamA><!--Interchangeable with other Param-->
  <ParamE></ParamE><!--Interchangeable with other Param-->
</root>


The following xml is NOT valid:
<root>
  <ParamB></ParamB>
  <ParamD></ParamD>
  <ParamC></ParamC>
  <ParamA></ParamA>
  <info></info> <!--This should appear as the first element inside root-->
  <ParamE></ParamE>
</root>


I have tried doing:
<xs:sequence>
  <xs:element name="info" minOccurrence="0">
  <xs:all>
    <xs:element name="ParamA" minOccurrence="0">
    <xs:element name="ParamB" minOccurrence="0">
    <xs:element name="ParamC" minOccurrence="0">
    <xs:element name="ParamD" minOccurrence="0">
    <xs:element name="ParamE" minOccurrence="0">
  </xs:all>
</xs:sequence>

This causes an invalid xml schema error because an all model group is not allowed to appear inside another model group.

I've also tried substitution:
<xs:complexType name="information">
  <xs:all>
    <xs:element name="info" minOccurrence="0">
  </xs:all>
</xs:complexType>

<xs:complexType>
  <xs:complexContent>
    <xs:extension base="information">
      <xs:all>
        <xs:element name="ParamA" minOccurrence="0">
        <xs:element name="ParamB" minOccurrence="0">
        <xs:element name="ParamC" minOccurrence="0">
        <xs:element name="ParamD" minOccurrence="0">
        <xs:element name="ParamE" minOccurrence="0">
      </xs:all>
    </xs:extension>
  </xs:complexContent>  
</xs:complexType>

This is still getting an xml schema error on the usage of all model group.

Does anyone have a similar problem or have any idea how to create an xml schema for the desired behavior stated above? Thanks.

modified 27-Apr-12 5:56am.

AnswerRe: XML Schema problem Pin
Member 794572714-May-12 3:22
MemberMember 794572714-May-12 3:22 
QuestionRemove a XMLnode - Pls help Pin
harvid24-Apr-12 18:24
Memberharvid24-Apr-12 18:24 
AnswerRe: Remove a XMLnode - Pls help Pin
VJ Reddy24-Apr-12 22:02
MemberVJ Reddy24-Apr-12 22:02 
GeneralRe: Remove a XMLnode - Pls help Pin
harvid24-Apr-12 22:59
Memberharvid24-Apr-12 22:59 
GeneralRe: Remove a XMLnode - Pls help Pin
VJ Reddy24-Apr-12 23:17
MemberVJ Reddy24-Apr-12 23:17 
GeneralHow to specify a Hex value in XML? Pin
Frank W. Wu9-Apr-12 11:47
MemberFrank W. Wu9-Apr-12 11:47 
AnswerRe: How to specify a Hex value in XML? Pin
PJ Arends9-Apr-12 16:09
professionalPJ Arends9-Apr-12 16:09 
GeneralRe: How to specify a Hex value in XML? Pin
jschell10-Apr-12 8:48
Memberjschell10-Apr-12 8:48 
QuestionWhat is it called? Pin
PJ Arends7-Apr-12 21:32
professionalPJ Arends7-Apr-12 21:32 
QuestionGetting values with template Pin
memorexr24-Mar-12 4:48
Membermemorexr24-Mar-12 4:48 
AnswerRe: Getting values with template Pin
PIEBALDconsult26-Mar-12 8:21
professionalPIEBALDconsult26-Mar-12 8:21 
QuestionXmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult23-Mar-12 12:23
professionalPIEBALDconsult23-Mar-12 12:23 
AnswerRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy26-Mar-12 11:08
Memberwoopsydoozy26-Mar-12 11:08 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult26-Mar-12 16:52
professionalPIEBALDconsult26-Mar-12 16:52 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 5:26
professionalPIEBALDconsult28-Mar-12 5:26 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
woopsydoozy28-Mar-12 5:53
Memberwoopsydoozy28-Mar-12 5:53 
GeneralRe: XmlDocument.SelectNodes not working for namespace attributes Pin
PIEBALDconsult28-Mar-12 10:24
professionalPIEBALDconsult28-Mar-12 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.