Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Specifying namespaces when querying xml

Hello Steven,

I haven't tried this myself but based on (http://forums.oracle.com/forums/thread.jspa?threadID=5039), I think something like the following would work:

    extract("'//dataformat/@id', 'xmlns=\"http://www.ourcompanykscl.com/configuration\"'");

If you want multiple namespaces I think the following is also valid:

    extract("'//dataformat/@foo:id', 'xmlns=\"http://www.ourcompanykscl.com/configuration\" xmlns:foo=\"http://example.com\"'");

-Blaise

Steven Hale wrote:
I've been struggling to query xmltype data using _expression_ extract(). extract() only has one parameter (xpath) and as far as I can see there doesn't seem to be any way to specify namespaces. Am I missing something?
 
/Steven

_______________________________________________ eclipselink-users mailing list eclipselink-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top