CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Dtd(urgent)

  1. #1
    Join Date
    Sep 2001
    Posts
    169

    Unhappy Dtd(urgent)

    I'm having a strange problem,I have declared ID of one of my elements which takes numeric value,DTD doesn't validate my file if i give a numeric value,if i give a character instead of numeric then it works is there any way throgh which i can give a numeric value in ID.

    <Switch ID="HICOMSwitch" MediaType="Voice" SwitchType="HICOM400">
    <!-- Following is already present in Application 'Switch' object
    MediaConnector ID="T-Server" -->
    <Links>
    <ApplicationRef name="T-Server"/>
    </Links>
    <DNs>
    <DN ID="DN1" Alias="Alias1">
    <Links>
    <SwitchRef ID="HICOMSwitch"/>
    </Links>
    </DN>

    </Switch>

    in the above when i give DN ID="1002",DTD gives an error that starting with an invalid character.
    anticipating your earliest reply.
    thanks
    Anushree

  2. #2
    Join Date
    Sep 2001
    Posts
    169
    no there is no way in which you can give a numeric value in place of an ID,in DTDs specifications it is written that in it ID field should always be alphanumeric.

  3. #3
    Join Date
    May 2003
    Location
    Columbus - []HI[]
    Posts
    3

    Yes however...

    You can use a identity constraint on elements.

    ID and IDREF were old carry overs from DTD... newer schema designs allow or have integrity constraints.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured