Menu

#121 CAMV - Report parent node name for missing node.

closed
nobody
camv (1)
7
2014-02-12
2013-11-28
Michel G.
No

Here's a simple XML tree:

<Root>
    <Test />
    <Test2 />
</Root>

If I create a CAM template from this I get something like this:

[…]
  <as:AssemblyStructure>
    <as:Structure ID="NewFile" taxonomy="XML" reference="">
      <Root>
        <Test />
        <Test2 />
      </Root>
    </as:Structure>
  </as:AssemblyStructure>
[…]

Now I change my original XML file to:

<Root>

</Root>

If try to validate this XML file against my template I'll get this report:

Error: /Root[1]: Element Missing =>Node: Root
Error: /Root[1]: Element Missing =>Node: Root

What I was really expecting was:

Error: /Root[1]: Element Missing =>Node: Test
Error: /Root[1]: Element Missing =>Node: Test2

Discussion

  • Serge Leontiev

    Serge Leontiev - 2013-12-02

    Ticket moved from /p/camprocessor/bugs/862/

     
  • Serge Leontiev

    Serge Leontiev - 2013-12-02
    • Group: Next_Release --> Next_Release_(example)
     
  • Serge Leontiev

    Serge Leontiev - 2013-12-02

    Enhance NodeValidartor to provide missing element or attribute full name.

     

    Last edit: Serge Leontiev 2013-12-02
  • Serge Leontiev

    Serge Leontiev - 2013-12-16
    • status: open --> closed
     
  • Serge Leontiev

    Serge Leontiev - 2013-12-16

    Fixed in CAMV 2.2

     

Anonymous
Anonymous

Add attachments
Cancel