Re: [xml] traversing xmlSchema



On 05Jun12 14:33, John Davis wrote:
}Is it possible to do a traversal of the internal xmlSchema structure
}generated by xmlSchemaParse to output information about the xmlDoc such as
}node values and types? If so, does anybody have any sample code for
}something like this I could take a look at please?

Depending on what you want to do, that will probably be quite a lot of code
and not particularly straight forward. If you take a look at
https://bugzilla.gnome.org/show_bug.cgi?id=490491
you can see some code that does (hopefully) way more than what you want
but it may give you some ideas in what's involved and what some of the
internal structures mean.

NB. This was done using the 2.6.X-era libxml2 coed.

regards,
    Callum

-- 

Callum Gibson @ home




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]