EDN Admin
Well-known member
Hi All
I am currently trying to create an IDML file (Adobe Indesign), the only issue I am having is that when I create a xml Element which needs a namespace to be inserted into the main xml document .net wants to add in the namespace declaration into the element
which is not wanted.
The XElement in question and how it should look like:
<idPkg:Story src="Stories/Story_stp1P.xml" />
VB.net code which is being used:
Dim FileString As String = "Stories/Story_" & StoryIDs(Int2) & ".xml"
Dim Obj = <idPkg:Story src=<%= FileString %>/>
Main.Add(Obj)
Below shows what is added into the Main XDocument
<idPkg:Story src="Stories/Story_stp1P.xml" xmlns="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" />
Any help on this would be appreciated <hr class="sig Still learning
View the full article
I am currently trying to create an IDML file (Adobe Indesign), the only issue I am having is that when I create a xml Element which needs a namespace to be inserted into the main xml document .net wants to add in the namespace declaration into the element
which is not wanted.
The XElement in question and how it should look like:
<idPkg:Story src="Stories/Story_stp1P.xml" />
VB.net code which is being used:
Dim FileString As String = "Stories/Story_" & StoryIDs(Int2) & ".xml"
Dim Obj = <idPkg:Story src=<%= FileString %>/>
Main.Add(Obj)
Below shows what is added into the Main XDocument
<idPkg:Story src="Stories/Story_stp1P.xml" xmlns="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" />
Any help on this would be appreciated <hr class="sig Still learning
View the full article