retrieving DTD/xml schema

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sangeeta

    retrieving DTD/xml schema

    I am a newbie to XML.

    I have a requirement where after loading the validate xml document I want to
    access its schema in the program. Can I retrieve it like I do the elemets.
  • Oleg Tkachenko [MVP]

    #2
    Re: retrieving DTD/xml schema

    Sangeeta wrote:
    [color=blue]
    > I have a requirement where after loading the validate xml document I want to
    > access its schema in the program. Can I retrieve it like I do the elemets.[/color]

    Well, you can check if document has DTD and if it has xsi:schemaLocat ion
    or xsi:nonNamespac eSchemaLocation attributes. Is it waht you need?

    --
    Oleg Tkachenko [XML MVP]

    Comment

    • Sangeeta

      #3
      Re: retrieving DTD/xml schema

      I want to be able to send the schema for the validated document and the
      document to another communicating application.

      "Oleg Tkachenko [MVP]" wrote:
      [color=blue]
      > Sangeeta wrote:
      >[color=green]
      > > I have a requirement where after loading the validate xml document I want to
      > > access its schema in the program. Can I retrieve it like I do the elemets.[/color]
      >
      > Well, you can check if document has DTD and if it has xsi:schemaLocat ion
      > or xsi:nonNamespac eSchemaLocation attributes. Is it waht you need?
      >
      > --
      > Oleg Tkachenko [XML MVP]
      > http://blog.tkachenko.com
      >[/color]

      Comment

      Working...