XML for beginners

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #1

    XML for beginners

    Hi guys, can you point me to some useful links?

    CONFIG.XML
    Code:
      
    
      <Config sequence="0">
        <DataType>String</DataType>
        <FieldNamePattern>*</FieldNamePattern>
      </Config>
      <Config sequence="1">
        <DataType>String</DataType>
        <FieldNamePattern>*0*</FieldNamePattern>
      </Config>
    STRUCTURE.XML
    Code:
           
            <Field name = "Field01">
              <Datatype datatype  = "String" datalength = "10"/>
            </Field>
            <Field name = "Field02">
              <Datatype datatype  = "DateTime" datalength = "10"/>
            </Field>
            <Field name = "Field13">
              <Datatype datatype  = "String" datalength = "5"/>
            </Field>
    1. Read CONFIG.XML element.
    2. Read all element in STRUCTURE.XML where Field element with attribute = CONFIG.XML.Fiel dNamePattern and have the same datatype. In this case, Field02 is not included since it's a DateTime.
    3. Read the next element.
    4.Read all element in STRUCTURE.XML where Field element with attribute = CONFIG.XML.Fiel dNamePattern and have the same datatype. In this case, only Field01 will be included since it conforms with the pattern and the datatype.

    In ASP/VbScript, please.

    Do I make sense?

    If you could just point me to the right direction.

    Thanks Guys,

    -- CK
Working...