1382Representing hierarchical structures in NewsML-G2
- Nov 19, 2013
I am new to NewsML and have a question regarding best practice for representing hierarchical structures in NewsML. The native format for the articles in question could be described with a snippet of XML (this is not the real native format but it describes the structure of the articles in question):
<Name>Fusce vel tincidunt lacus</Name>
<headline>Vivamus condimentum arcu sed</headline>
<leadin>Neque porro quisquam</leadin>
<body><p><b>Lorem</b>ipsum dolor sit amet, <u>consectetur</u> adipiscing elit.</p></body>
<headline>Quisque nisl nisl</headline>
<body><p>Duis sem justo, cursus sit amet tortor eu, tincidunt mattis enim</p></body>
The article itself does not have any content but is a mere container for metadata. The actual content is divided in so called article parts (ArticlePart).
An article can have 1 to many article parts and a article part can have 0 to many images.
The question is then how to go about transforming this to NewsML? I have tried using groupSet element which I guess work but the consequence is that I have to have one group per article part (in order to keep track of where images reside in the structure).
Also, since much of the metadata resides on the article, should I copy it down to each newsItem (i.e. article part) or should I put it on the packageItem level?
System Developer @Infomaker Scandinavia AB
- Next post in topic >>