Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed exception in TXMLDataBindingItem.GetDocumentation #4

Merged

Conversation

Deeem2031
Copy link

see docwiki.embarcadero.com Xml.XMLIntf.IXMLNode.Text:

If the node has children (other than a single DOM text node), reading or setting Text causes an exception.

GetDocumentation fails on elements like this:

    <xs:element name="xy" type="xyType">
      <xs:annotation>
        <xs:documentation xml:lang="de">
          <translation>xy</translation>
          <description>
            <short>kurze Beschreibung</short>
          </description>
        </xs:documentation>
      </xs:annotation>
    </xs:element>

This solution simply ignores every documentation with more than a single child element.

@MvRens MvRens merged commit b4998a5 into MvRens:master Jun 14, 2022
@Deeem2031 Deeem2031 deleted the EXmlDocErrorWithNestedDocumentation branch June 14, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants