Skip to content

Commit

Permalink
Fix documentation encoding issue with no XML declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzobrain committed Apr 4, 2024
1 parent e7c22f0 commit 11fc851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xsd/base_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def documentation
# @param [Nokogiri::XML::Node] node
# @return Array<String>
def documentation_for(node)
node.xpath('./xs:annotation/xs:documentation/text()', { 'xs' => XML_SCHEMA }).map { |x| x.to_s.strip }
node.xpath('./xs:annotation/xs:documentation/text()', { 'xs' => XML_SCHEMA }).map { |x| x.text.strip }
end

# Get all available elements on the current stack level
Expand Down

0 comments on commit 11fc851

Please sign in to comment.