Loading ...
Sorry, an error occurred while loading the content.

1382Representing hierarchical structures in NewsML-G2

Expand Messages
  • dd634e06083be08f58436f26c0122830
    Nov 19, 2013
    • 0 Attachment

      Hi,


      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):


      <Article id="1">

          <Type>Normal</Type>

          <Name>Fusce vel tincidunt lacus</Name>

          <Status>2</Status>

          <Department>10</Department>

          <Tags>

              <Tag>CARS/BMW</Tag>

          </Tags>

          <ArticleParts>

              <ArticlePart id="10">

                  <Type>Main</Type>

                  <Content>

                      <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>

                  </Content>

                  <Images>

                      <Image id="110">

                          <Name>Image-1</Name>

                          <MimeType>image/jpeg</MimeType>

                          ...

                      </Image>

                      <Image id="220">

                          <Name>Image-2</Name>

                          <MimeType>image/jpeg</MimeType>

                          ...

                      </Image>

                  </Images>

              </ArticlePart>

              <ArticlePart id="15">

                  <Type>Fact</Type>

                  <Content>

                      <headline>Quisque nisl nisl</headline>                

                      <body><p>Duis sem justo, cursus sit amet tortor eu, tincidunt mattis enim</p></body>

                  </Content>

                  <Images>

                      <Image id="330">

                          <Name>Image-3</Name>

                          <MimeType>image/jpeg</MimeType>

                          ...

                      </Image>               

                  </Images>

              </ArticlePart>

          </ArticleParts>

      </Article>


      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?


      Thanks!




      Best Regards,

      Ola Andersson

      System Developer @Infomaker Scandinavia AB

      www.infomaker.se


    • Show all 7 messages in this topic