xml schema issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lexul
    New Member
    • May 2007
    • 7

    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>

    Thanks
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Hi,
    Check this tutorial...
    I think it will help u

    Thanks
    Raghuram

    Comment

    • lexul
      New Member
      • May 2007
      • 7

      #3
      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"/>
      <element1>

      Comment

      Working...