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
  • 1.  tag name

    Posted Tue October 19, 2004 06:22 AM

    I have a schema with an element name as . I was able to insert XML docs using the xplorer into the schema.
    When i try to query tag using XQuery from (Interactive Interface) i get syntax error.

    for $b in (input()/doc_root/item
    return $b

    The above gives syntax error. Please help me out on this.Is there any limitation not use as a tag in the XML.

    Thanks

    Mahesh


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: tag name

    Posted Tue October 19, 2004 10:41 PM

    This is in the release notes (relnotes/rnissues.htm#d0e1234):



    And sure enough, ?item? is in the list of reserved names (see http://w3.org/TR/xquery/#id-reserved-fn-names). So your query should be:

    for $b in input()/doc_root/:item
    return $b

    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs