|
David, what is it about XPath that you don’t
like? The cursor gives you no real advantage
over XPath – you’re still bound to use the attribute names rather
than their types to identify the correct elements (obviously not a desirable solution…).
I think with XmlObject you might be able to use the types, but there is no API
that lets you say give me all elements that have an attribute of type XXX…so
you’ll have to traverse the whole XML tree as well…So as I see it,
XPath is your best bet right now… From: David Garcia
[mailto:[EMAIL PROTECTED] Hi I know it will be difficult to implement
this feature on DOM, is there any way of doing the same but working with
XmlObjects, Cursors or any other xmlbeans feature? Regards Dave Garcia -----Mensaje original----- Hi
David, sorry
for not getting back to you earlier – the current DOM implementation is
not schema aware at all…thus propagating type information (which is what
the ID type of the attributes is) is non-trivial…We are looking into
supporting that as part of DOM Level 3 if we implement it in v3. You are
of course welcome to come up with a patch/solution of your own, but the
solution is non-trivial (otherwise we’d just do it)…You can start
by looking at the store package, which contains the Dom Implementation... - From: David
Garcia [mailto:[EMAIL PROTECTED] Hi, I’m using xmlBeans together
with Apache xml security framework and when working with ds:References , if
they are #xpointer expressions the Document.getElementById() method is
called (in the xmlBeans implementation it delegates it’s execution to the
DomImpl class ), but in the current version a RuntimeException( "Not
implemented" ) is thrown L . For avoiding this, I use a xpath
query like this: "//[EMAIL PROTECTED]'"+id+"']" but I don’t like
this solution much…
I know that on the svn current version there is code to support DTD matching
id’s but schemas are not supported… yet.
Is there any plan to implement it? How could I implement it using the
code contained on the current svn version? Regards Dave Garcia |
- Document.getElementById method not implemented David Garcia
- RE: Document.getElementById method not implemented Yana Kadiyska
- RE: Document.getElementById method not implemented David Garcia
- RE: Document.getElementById method not implemented Yana Kadiyska
- RE: Document.getElementById method not implemented David Garcia

