User Profile

Collapse

Profile Sidebar

Collapse
lexul
lexul
Last Activity: Mar 27 '08, 08:14 AM
Joined: May 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lexul
    started a topic optional random elements in xml schema
    in XML

    optional random elements in xml schema

    Is there a way to specify in a xsd schema that i want to allow some optional subtags in any random order(each occuring at most once), and at least one of them(no matter which) to be present?
    Example(this should be validated by the xsd schema)

    <parent>
    <child1/>
    <child2/>
    </parent>

    <parent>
    <child2/>
    <child1/>
    </parent>...
    See more | Go to post

  • lexul
    replied to xml schema question
    in XML
    i don't know how many tags(subtags) the element will contain and neither their name(and i don't care). i just want to allow the element to contain ANYTHING
    See more | Go to post

    Leave a comment:


  • lexul
    replied to xml schema question
    in XML
    I am afraid an element defined as "mixed" will accept subtags and text but those subtags will not accept subtags.....i want an element to accept any depth of subtag nesting:(
    See more | Go to post

    Leave a comment:


  • lexul
    started a topic xml schema question
    in XML

    xml schema question

    Is there a way to specify in a .xsd file that you want to allow an element(a tag) in a .xml file to contain anything(tags, subtags, quotation marks, text, any punctuation marks, anything in no matter what order)?
    Thanks
    See more | Go to post

  • lexul
    started a topic xml schema group
    in XML

    xml schema group

    this is the dtd representation of what i need to convert in xml schema:
    <!ELEMENT Atomic (CmdID, NoResp?, Meta?, (Add | Replace | Delete | Copy | Atomic | Map | Move | Sequence | Sync | Get | Exec | Alert)+)>

    That is, I want to allow every element inside the paranthesis to be present no matter how many times(without this being necessary), as long as at least one of them is present at least once.

    Any help...
    See more | Go to post

  • lexul
    replied to xml schema issue
    in XML
    thanks for the tip
    my problem could be simplified by asking the following question: how can i specify in a .xsd file that a certain element pertains to a certain namespace(not the namespace specified in "targetNamespac e" namespace)?
    In other words how can i specify in a .xsd file that this structure is the only admissible one:
    <element1 xmlns="onenames pace">
    <childElement xmlns="anothern amespace"/>...
    See more | Go to post

    Leave a comment:


  • lexul
    started a topic xml schema issue
    in XML

    xml schema issue

    Does anybody know how can i specify in a .xsd file that a certain xml element HAS to possess an attribute with "xmlns" name and a string value? If i try to specify the common way i get an error that says the "xmlns" is not permitted as an attribute name. I just want to specify in the xsd the fact that i want "element1" to have the "xmlns" attribute:

    <element1 xmlns="namespac e">value</element1>...
    See more | Go to post
No activity results to display
Show More
Working...