Copy link to clipboard
Copied
Hello, I am having a problem when importing a xml file. When I do so the Map Tags to Styles box is blank as shown below.
Does anybody know what might be happening?
I use simple tags as below:
<xml>
<chapnum>1</chapnum>
<normal>blah blah blah blah blah</normal>
<normal>another paragraph text</normal>
<normal>more paragraph text</normal>
<chapnum>2</chapnum>
<normal>blah blah blah blah blah</normal>
<normal>another paragraph text</normal>
<normal>more paragraph text</normal>
</xml>
I think I figured out a work around. I replaced the <xml> and </xml> tags in the file and replaced it with <book> and </book> (I think anything could be used) and it imported fine. I am not sure why it through a fit using <xml> at times but it looks like this will work.
<book>
<chapnum>1</chapnum>
<normal>blah blah blah blah blah</normal>
<normal>another paragraph text</normal>
<normal>more paragraph text</normal>
<chapnum>2</chapnum>
<normal>blah blah blah blah blah</normal>
<normal>another paragraph t
...Copy link to clipboard
Copied
Hi pateimus,
This will be best answered on our InDesign Scripting forum. Hence moving the thread to scripting space.
Also, you may refer to this tutorial: Tag content for XML in InDesign
Regards
Srishti
Copy link to clipboard
Copied
Srishti, this is the proper forum for this question. Please leave it here.
pateimus,
Which ID version are you using? I am using CS6 in the image below, but I haven't read of any issues in the current versions (and there wasn't the last time I used CC).
Copy link to clipboard
Copied
Thank you for the response...I am using 12.0.0.81 x64 build
I am not sure if it would make a difference but I take a previous book that I have created and erase the text in it then import the xml.
Copy link to clipboard
Copied
It might/would make a difference if the XML got deformed. But without seeing it I wouldn't know.
It is also possible that ID's preferences got munged-up in some way. It would take deleting the preferences and you would loose any customization of ID.
Mike
Copy link to clipboard
Copied
I think I figured out a work around. I replaced the <xml> and </xml> tags in the file and replaced it with <book> and </book> (I think anything could be used) and it imported fine. I am not sure why it through a fit using <xml> at times but it looks like this will work.
<book>
<chapnum>1</chapnum>
<normal>blah blah blah blah blah</normal>
<normal>another paragraph text</normal>
<normal>more paragraph text</normal>
<chapnum>2</chapnum>
<normal>blah blah blah blah blah</normal>
<normal>another paragraph text</normal>
<normal>more paragraph text</normal>
</book>
Thanks for everyone's help.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now