You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPEpublication PUBLIC "-//IEEE//IDAMS Exchange V2.0.0//EN" "ieee_idams_exchange.dtd">
<publication>
<title><![CDATA[IEEE Std 1430-1996]]></title>
<normtitle><![CDATA[IEEE Std 1430-1996]]></normtitle>
<standardsfamilytitle>IEEE Guide for Information Technology Software Reuse-Concept of Operations for Interoperating Reuse Libraries [Developed in cooperation with the Reuse Library Interoperability Group (RIG)]</standardsfamilytitle>
...
The lutaml-model is:
moduleIeeemoduleIdams# Represents an IEEE IDAMS publication recordclassPublication < Lutaml::Model::Serializable# Publication title# @return [String] normalized titleattribute:title,:string# Publication normalized title# @return [String] normalized titleattribute:normtitle,:string# Standards family title# @return [String] family title for standardsattribute:standardsfamilytitle,:string# Publication information# @return [PublicationInfo] detailed publication metadataattribute:publicationinfo,PublicationInfo# Volume information# @return [Volume] volume detailsattribute:volume,Volumexmldoroot"publication"map_element"title",to: :titlemap_element"normtitle",to: :normtitlemap_element"standardsfamilytitle",to: :standardsfamilytitlemap_element"publicationinfo",to: :publicationinfomap_element"volume",to: :volumeendendendend
Does lutaml-model have ability to parse CDATA?
The text was updated successfully, but these errors were encountered:
@HassanAkbar I've renamed this issue, let's just use this issue for CDATA support.
CDATA should always be read because it is just a string (string type). CDATA only works for XML elements, not attributes.
In the XML block, we need to specify whether the text should be encoded as "CDATA" or text. e.g.
attribute:title,:stringxmldomap_element:title,to: :title,cdata: true# read cdata or string, produce only cdatamap_element:title,to: :title,cdata: false# read cdata or string, produce only stringend
The
title
andnormtitle
are not parsed:The lutaml-model is:
Does lutaml-model have ability to parse CDATA?
The text was updated successfully, but these errors were encountered: