Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1335

QxmlDomElement_SetAttribute does not work properly.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • None
    • None
    • DOM
    • None
    • AS400 using RPG ILE

    Description

      I am trying to add the following attributes:
      id=2048
      qualifiers=false
      reqval=false
      selected=true
      using the code snippet below, in a loop

      I am ending up with:
      false="false"
      id="2048"
      true="true"

      Eval %Str(strgbuf@:256) = AttrName2C
      Eval XMLString1@ =
      QxmlTranscodeToUNICODE(strgbuf@:
      Qxml_CHARSTR:%Len(%TrimR(AttrName2C)))

      Eval %Str(strgbuf@:256) = AttrVal2C
      If %Subst(AttrName2C:1:8) = 'selected'
      Eval %Str(strgbuf@:256) = 'true'
      EndIf

      CALLP QxmlDOMElement_setAttribute
      (NodePtr1@:
      XMLString1@:
      qxml_UNICODE:
      %Len(%TrimR(AttrName2C)):
      strgbuf@:
      Qxml_CHARSTR:
      %Len(%TrimR(AttrVal2C)))

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rperkins Rod Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment