cancel
Showing results for 
Search instead for 
Did you mean: 

Syndicator: Repeatabled Nodes and Fixed Values defined in XSD

Former Member
0 Kudos

I am trying to achieve the following XML output from MDM Syndicator:

XML1
<?xml version="1.0" encoding="UTF-8" ?> 
<Root>
  <Story>
    <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="3" aid:tcols="2">
      <Part_Number>RRA521E</Part_Number> 
      <Description>Cable to Rebar</Description> 
      <Part_Number>RRA541E</Part_Number> 
      <Description>Cable to Rebar</Description>
      ...
      <Part_Number>RRA531E</Part_Number> 
      <Description>Cable to Rebar</Description> 
    </Table>
  </Story>
</Root>

The problem I am running into is that I cannot find the option where Part_Number and Description are repeatable within the <Table> node. I am only able to achieve a repeatable <Table> node structure like below:

XML2
<?xml version="1.0" encoding="UTF-8" ?> 
<Root>
  <Story>
    <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="" aid:trows="" aid:tcols="">
      <Part_Number>RRA521E</Part_Number> 
      <Description>Cable to Rebar</Description>
    </Table>
    <Table>
      <Part_Number>RRA541E</Part_Number> 
      <Description>Cable to Rebar</Description>
      ...
      <Part_Number>RRA531E</Part_Number> 
      <Description>Cable to Rebar</Description> 
    </Table>
  </Story>
</Root>

In addition the Syndicator also seems to ignore the XSD standard for specifying fixed attribute values (as seen in XML2), defined below:

XML3
...
<xs:attribute name="xmlnsaid" type="xs:string" use="required" fixed="httpadobe"/>
<xs:attribute name="aidtable" type="xs:string" use="required" fixed="table"/>
<xs:attribute name="aidtrows" type="xs:integer" use="required" fixed="3"/>
<xs:attribute name="aidtcols" type="xs:integer" use="required" fixed="2"/>
...

Does anyone have experience in getting an XML result such as the one defined in XML1 above? Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I am not sure you can achieve this, since even though you removed the Destination property for the 'Table' node (from ur example), it still appears in the XML extract, becaz the XSD structure is like that.

hope Syndicator doesn't have direct feature to achieve this...

thanks

alexander

Former Member
0 Kudos

Hi,

This is addressing your second issue!

Syndicator doesn't consider the "fixed" attribute value specified in XSD. A work around is mentioned in the following thread

Hope it helps!

Regards

Swarna

Former Member
0 Kudos

Thanks, I was having the same issues at my client site.