webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Namespace declarations after attributes

  • 1.  Namespace declarations after attributes

    Posted Wed January 04, 2006 12:52 PM

    Hi,
    i’ve stored Word2003 (XML) documents in Tamino 4.4.1.
    The problem is, that a result of a query changes the sequence of the namespace declarations like

    The used JDOM Parser doesn’t except this! Is it possible to tell the xquery processer where to put the declaration?


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Namespace declarations after attributes

    Posted Thu January 05, 2006 01:33 PM

    Hi,

    the XML specification declares the sequence of attributes belonging to the same
    element as non-significant. This also holds for attributes representing namespace nodes. This means to say that it is still the same element though the attribute
    sequence is different.

    JDOM should not have a problem here, but since it does, as you say, perhaps it
    would help to enclose the element into another element also declaring the word
    namespace and thus make JDOM familiar with this before it encounters the
    prefixed attribute:

    <w:out xmlns:w=“http://schemas.microsoft.com/office/word/2003/wordml”> {
    <w:wordDocument w:embeddedObjPresents=“no” …
    } </w:out>

    Regards,
    Juliane.


    #API-Management
    #webMethods
    #Tamino