Import XML... vs .importXML [JS CS4]

I'm looking to programmatically import an XML file, but the results are not what I expected.
For example, take this file, sample.xml
<persons>
   <person pid="0">
     <name>John Q. Public</name>
     <age>54</age>
     <date string="birthday">
       <day>14</day>
       <month>May</month>
       <year>1956</year>
     </date>
   </person>
   <person pid="1">
     <name>Sally Smith</name>
If I run this code, importSample.jsx
// a new document was already programmatically created
var myDocument = app.documents.item(0);
myDocument.xmlElements[0].importXML(File(Folder.desktop + "/sample.xml"));
I get this:
But if I use File > Import XML... I get this, which is what I want:
The examples I'm finding for scripting XML import are all the same – most results for scripting turn up Adobe's own PDF guides. The XML rules examples in the InDesign CS4 Scripting Guide PDF (Javascript) uses similar XML in its example, but requires it to be imported already. What am I missing here?

First off, thanks for the reply!
Perhaps a few basic checks are in order:
* is your sample.xml saved as plain text? (I suppose it is, because ID itself can read it. Check anyway, will you?)
As sample.xml or sample.txt, as UTF-8 with or without the BOM – no go.
* are you sure the file opened in your script is the one you intended? I put the XML file in the Scripts folder, and used this for path:
myDocument.xmlElements[0].importXML(File(app.activeScript.path + "/sample.xml"));
If I remove the one I think I'm using on the Desktop it gives me a modal window saying the file can't be found. I tried the above path with a copy of the XML in the same folder as the script with the same results.
* ... can't think of anything else ...
(Ed.) My version is not showing any XML contents, but that's because it's a preference which accidentally was "off" on my system. It's still the same.
Running the script doesn't "open" the XML tree in the Structures panel. If you open the Root item, it shows "persons" but not its contained items. However, since I saw the little triangle on the left, I knew there was more to it and opened that too. Perhaps ... your InDesign forgot to draw that "there-is-more" triangle!
Did you know clicking the Open triangle with the Alt button down (on a Mac) also opens all elements within? I just found that accidentally ... (Plenty surprises left, I guess.)
I clicked, option-clicked, command-clicked, command-option clicked... where the disclosure triangle next to "persons" should be, and no results. Clicking the same way on "Root" only discloses "persons". (That's a cool trick for showing all items though.)
If I select "persons" and choose "New Element..." from the Structure Panel menu I get a choice of:
person
persons
Root
I can't add more to the newly created "person" in the same (or any) way. Options at higher levels remain the same.
Is one of these wrong?
function setXMLPrefs(){
   var myDocument = app.documents.item(0);
   // XML View Preferences
   var myXMLViewPreferences = myDocument.xmlViewPreferences;
   myXMLViewPreferences.showAttributes = true;
   myXMLViewPreferences.showStructure = true;
   myXMLViewPreferences.showTaggedFrames = true;
   myXMLViewPreferences.showTagMarkers = true;
   myXMLViewPreferences.showTextSnippets = true;
   // XML Import Prefs
   var myXMLImportPreferences = myDocument.xmlImportPreferences;
   myXMLImportPreferences.allowTransform = false;
   myXMLImportPreferences.createLinkToXML = false;
   myXMLImportPreferences.ignoreUnmatchedIncoming = true;
   myXMLImportPreferences.ignoreWhitespace = true;
   myXMLImportPreferences.importCALSTables = true;
   myXMLImportPreferences.importStyle = XMLImportStyles.mergeImport;
   myXMLImportPreferences.importTextIntoTables = false;
   myXMLImportPreferences.importToSelected = false;
   myXMLImportPreferences.removeUnmatchedExisting = false;
   myXMLImportPreferences.repeatTextElements = true;

Similar Messages

  • Importing XML Tags in a document

    Hello,
    I've been trying to import XML Tags in a .indd i created, using the Java API but it does not seem to work (the tags content don't update when i export the document as PDF).  I did the same actions in the InDesign CS4 GUI and it worked like it's supposed to.
    I ran the InDesign server using that command: InDesignServer -iorfile c:\ior.txt -pluginpath Server\Corba
    I included the .indd file, XML tags file and the Java code I wrote.
    EDIT:
    Also, document.getModified() is FALSE, even after calling document.loadXMLTags(...).
    When I exports the tags, all I get is this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root colorindex="0"><Tag colorindex="35"/></Root>
    document.countTextFrames() returns 4, which is what is expected.  However document.countXMLTags() returns 2, i'm guessing it's because all my tags are named <Tag...> (+ the <Root> element).  Could that be the cause of my problems?
    any help will be appreciated, thanks

    Import XML imports the entire XML file, including the tags and the content, into the document. In the UI, the result would be seen in the Structure View. You can then work with the imported tagged content.
    Load XML tags simply loads the tags into the tag list. In the UI, the result would be seen in the tags panel. (This command is also available from the tags panel.) No XML content is imported; only the tag list is populated. This is used when you just want the tags from a document, and you don't want the content. You can then tag new content using the same tags as the XML file.

  • "Cells too small to split" importing XML

    My hubris in presuming to advise other people about importing XML last week has been punished, it seems.
    I am trying to populate a table with data from an XML document. The XML has the following structure:
    order
      basket
       quantity.../quantity
       title.../title
       price.../price
       quantity.../quantity
       title.../title
       price.../price
    /basket
    /order
    (Actually there's more to it, but that will give you the idea.) I've created a placeholder table with a single row, tagged the table 'basket' and tagged each cell with one of the element names. The containing frame is tagged 'order'.
    If there is only a single item (quantity, title, price triple) in the basket, it works a treat. If there's more than one, though, I get the bewildering error message "Cells too small to split". They aren't: I can split the row horizontally by hand, and then import two items.
    I'm using CS3, but the same thing happened when I tried in the CS4 demo. I did Google for the error message and found one other person asking for help with a similar problem but he didn't get any replies.
    Has anyone seen this message or got any clues to offer?

    I have the exact same message here. What in my case the issue seems to be is that I have a linked XML file that I update. This works great until I add a new table to the original XML file. Then my update gives the "Cells too small to split" error, and it will not update.
    Creating a new document and importing the XML from scratch does work. For us not the ideal way to work, since I now mannualy have to do a "override styles" on each table again.
    I have reset my table-styles to a style with an embedded body-cellstyle with 0 inset. I would have no clue as to how to set a minumum row-height and width in a cell or table style though.
    Would be great if anyone has found a solution in the meantime.

  • Importing XML destroys tables formatting

    Hi!
    I have an xml file containing my document translated into another language. When I import this into my Indesign CS4 document, the info in the tables, although it is imported correctly, removes my alternating row fills.
    I have checked the origin xml file, it contains no info about alternating row fills, neither does the new xml document. So Indesign decides to scrap it by itself.
    Question is, is there anything I can do to stop it from doing this, or otherwise simply restore the tables design so I don't have to manually go in and fix all tables from scratch?
    (The tables part were tagged using the autotag feature)
    Best regards
    Kristian

    Did you use a table style?
    I don't know much about XML, but I suspect if you want table formatting to be preserved it would need to be defined as a style.
    Peter

  • Importing XML Templates

    Hi,
    Currently I am using Adobe Framemaker to import XML templates and make tables of data. Once the data has been imported into Framemaker it is easy to manipulate (change colours/sizes of columns etc.)
    However, I am looking for a way to do this work in InDesign.
    So far, I have tried importing the XML template into InDesign successfully, but as soon as I try to change columns/delete columns, basically make any changes to the table, InDesign freezes, and I have to restart the program.
    The XML document is very large (4,089 rows in excel) and imported from Excel.
    I am using CS4 on Windows XP.
    Can anyone help ?

    Does InDesign freeze if the table is not tagged? (i.e. untag the table and perform the column changes.)

  • File dialog box when importing XML?

    Quick and hopefully easy question:
    What's the javascript format for selecting an XML file manually? I know it's not this:
    /* imports XML manually
    myDocument.importXML=File.openDialog("Choose the current XML file");
    I have my project working well, but I've decided to get the user to manually select the XML in case they've downloaded a second version named (for example) data-1.xml and not data.xml. Then the onus is on them to select the most up-to-date XML and we can also name the xml with a datastamp.
    Thanks for this any all other help on this forum - I have little enough hair to pull out as it is...
    Simon.

    HI Phil,
    Lovely - the XML import works although I now need to get my head around XML story formatting. It's dropping all the XML into the first frame on the first page, which I understand to a degree, but also dropping the XML where I need it.
    The issue I have with the XML import is the automated document creation has been built around a sort of hybrid flow- and frame-based XML import. Some of the XML drops into a couple of text frames on the first page (creation date, sections etc), then the rest of the document autoflows onto however many pages it requires.
    It looks like I'll need to convert it to entirely flow-based XML import, which might be a bit of a head-scratch for me (being relatively new to this).
    Thanks very much. No doubt I'll be back on here with more questions but this is a huge help.
    <edit> I did 'fix' the XML, and it works a treat. The more I do, the more I understand.
    Regards,
    Simon.

  • When importing XML, how do I remove lines with labels but no content?

    I am working on a directory whose content is supplied as an XML file. I've created an automatic layout with static text/labels for contact details (e.g. Phone, Fax).
    When I import the file, superfluous lines with the static text and no content are created. I have 'Delete elements, frames and content that do not match imported XML' checked.
    Is there a way of avoid creating these? I've tried doing a search and replace to remove these but this causes quite a few other problems.
    Any help - much appreciated!

    Hi Alison,
    Did you create the posted XML file by extracting it from a larger file you've been using successfully? I ask because there seem to be a couple of problems with it which make me wonder how you got it to work at all, at least with the provided InDesign file's XML structure:
    The immediate child element of the "root" element in the XML document is one called "step2 ". All of the values with which you are concerned are children of that "step2" element, and yet the structure in the InDesign document contains no "step2" element. As a result, when I import, I get nothing at all in my InDesign document's content (though the data are in the XML structure, buried in a newly-created "step2" element.
    In both the XML and the InDesign document's XML structure, you have two different elements which are both named the exactly the same - "description" - (actually, in the XML document, there are three of them). When InDesign imports XML, it stops after the first "match" that it finds, so this will not work in any way that I imagine you intend it to. Based on the content of your InDesign document, I would think there ought to be two separate elements in your XML - named something like "step_description" and "category_description".
    If, after getting this all straightened out, your question is how to somehow make the text of an empty element (e.g., <description></description>) disappear in the imported result, there are a few possibilities:
    Get rid of the text inside the tag markers in your template/base document - for example, instead of having "[step_description]" (where the "[]" represent the tag markers), just make it be "[]". That way, if there is no text value for "step_description", there will be no text left after the import. However, if you put a end-of-paragraph in your template/base file, that will still be there. In most cases, that's not desired, so you might want to put the empty tag ("[]") in the text flow without a carriage return/line break. If you do that, you will need to include the carriage return in the XML data (which admittedly slightly violates the notion of separating presentation from content). Rather than the xml looking like this:
    <step_description>This is the text of my step description.</step_description> you would need to make it be this:
    <step_description>This is the text of my step description.&#13;</step_description>
    (having added "&#13;" to represent the carriage return (ASCII character 13).
    As above, make the tag an empty one, include the carriage return in your InDesign template/base document, and then write (or have written) a script to run after the XML import to deal with such empty tag cases.
    Upgrade to InDesign CS3, CS4, or soon, CS5, so you can take advantage of the "XML Rules" feature which was introduced in CS3. XML Rules will essentially allow you to automate the second option - running a script - as the XML import is taking place.
    Excuse the long (and probably unclear) post. If I've misunderstood your question, then please excuse it doubly...

  • [JS CS5] Resizing graphics after importing XML, but before placing on page

    I've been looking for an answer for this for a long time, and judging by the other posts here, many others are also.
    Given an XML file consisting of:
    <root>
         <products>
              <product>
                   <image href="file:///filepathhere"/>
                   <description>
              <product>
                   <image href="file:///filepathhere"/>
                   <description>
    I can import this into a layout, and drag the products element to a text frame. All the images appear inline, and then I run a script that uses XML Rules to locate the images, resize the image frames, and apply an object style. The trouble is, that once in a while the images references by the XML are so enormous that they simply exceed the bounds of the pasteboard, and things blow up.
    So what I want to do instead, is to somehow resize the images to a manageable size BEFORE I drag the products element into a text frame.
    Ole posted a possible solution here: http://forums.adobe.com/message/1108974#1108974
    In that post, he says that "If you're using CS4, can use the resize method to resize graphics that have not yet been placed in a layout." I've been trying to implement his "rough" script, and I can't work it out.
    This is what I have:
    var myRuleSet = new Array (new processImage);
    with (myDoc) {
         var elements = xmlElements;
         __processRuleSet(elements.item(0), myRuleSet);
    function ProcessImage(){
         this.name = "ProcessImage";
         this.xpath = "/root/products/product/image";
         this.apply = function(myElement, myRuleProcessor){
              var myImage = myElement.graphics.item();
              myImage.resize(CoordinateSpaces.innerCoordinates, AnchorPoint.centerAnchor, ResizeMethods.multiplyingCurrentDimensionsBy,[.1,.1]);
              myImage.parent.fit(FitOptions.frameToContent);
              return true;
    "myImage" isn't valid in the script above. Does anyone know if this is possible, and if so, what I'm doing wrong? Thanks for any light anyone can shed on this!

    After spending some more time with this today, I've realized that what Ole was talking about here: http://forums.adobe.com/message/1108974#1108974. He said that "If you're using CS4, you can use the resize method to resize graphics that have not yet been placed in a layout."
    What he was referring to was graphics that are in overset text, not graphics in XML that have been imported but not placed.
    So, there is no way that I know of to process images and image frames in imported XML that hasn't been placed in the layout yet.
    But, a good workaround to my problem that I developed was to first place the imported XML into a very tiny temporary text frame, so that all images are immediately overset. Then I process the images to a manageable size using the resize method, per Ole's suggestion. Then, and only then, do I move the content onto my layout. This avoids problems with graphics being pointed to in the XML that may be too large for the pasteboard.
    I hope this obscure technique is useful for someone!

  • Importing XML to automate layout

    Hi,
    I have been trying for days to import a XML datafile into InDesign CS4.
    I have successfully achieved the following:
    Created a DTD file
    Imposrted Tags
    Created tagged text and image elements
    Made sure the structure of document matches XML file
    Validated XML with DTD
    Imported XML data so that 1 page of data displays perfectly (I am creating a book catalogue)
    I can not:
    get the repeating elements to automatically display - create following pages (like the first) and populate with data
    I have read everything I can find (wich is not much), but no solutions.
    Advice will be appreciated. Thanks

    If repeated elements in the XML have generated "cloned" corresponding bits of layout, which is probably what you intend, then it should exist as overset text. You can autflow this overset text in the usual way.
    If repeated elements XML haven't generated corresponding bits of layout, perhaps your "XML Import Options" settings are wrong. Make sure the "Clone repeating text elements" option is checked. You will probably need to experiment a bit with the other options too before you get it exactly the way you want it -- XML involves "trial and error"!
    I'm surprised you are bothering with a DTD. A "validated" XML file is one whose structure complies with an agreed structure for a particular purpose, but all InDesign needs is "well-formed" XML. The only time I ever used a DTD was when I insisted on using one, after a client was being a bit sloppy and changed the structure of the XML he was sending me for my template (without telling me first).
    Jeremy

  • Error, Premiere Freezes on certain files only. Import .XML file

    So I just imported an XML FCP file onto CS4 Premiere (PC) so I could do some after effects compositing. At first i had trouble since the sequence media was off line i had to link each media. This was because the files were in a Apple formated hard drive, and in many folders.
    I am running the project on PC through premiere (4.01), but i have the external hard drive running off a usb connection.
    I started color correcting first on Premiere, but ran into the problem that it freezes when i try to select certain files, or when i try to apply an effect.
    it reads. "Premiere Pro has encountered an error [../Src/Sequence/TrackItemSelection.cpp-156]"
    i tried searching this online i couldn't find anything.
    I am running XP Professional, Intel Core 2 Quad CPU Q6600 @2.40GHZ, 4 GB of Ram
    Thanks ahead of time

    Read this:
    http://www.adobeforums.com/webx/.59b7fc11/0
    HTH,

  • "table is in wrong order" error while importing xml...

    Hi everyone,
    We are currently working in XML workflow in InDesign CS4. We are facing some problem in table part. We are converting CALS xml tables to InDesign table format, error appears in some of the tables while importing into InDesign, like "table is in wrong order".
    How can i find the exact errors in the tables? Specifically i have to find which cells giving trouble. Herewith i attached the sample xml file for your references.
    Can anyone look into this and help me out. Also suggest me to resolve this issue.
    Thanks and regards
    Thiyagu

    Hi TurtleCruiser,
    Its working fine. Thanks for your great help.
    Thiyagu

  • How to Import XML file into SAP B1

    Dear All,
    I have a scenario like,
    I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
    Thanks,
    Thanga Raj K

    Hy folks,
    I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
    There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
    However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
    So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or  it´s really necessary to write a code specifically to do that?
    Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
    Could you please help me with this subject!
    Thanks a lot,
    Denis

  • I need to know how to import xml files into indesign cs6.

    My client wants to send me xml text files to import into Indesign for a multi-page publication. I don't have a clue where to start. Can you point me to a tutorial that would help me figure this out?
    I have a sample file that looks like this:
    <?xml version="1.0"?>
    <providers>
      <provider>
        <name>Bow Valley College</name>
        <description>Putting the Community back in college&#x2026;in the Bow Corrid
    ANY TIME, ANY PLACE, ANY PATH, ANY PACE LEARNING.
    Designated as the comprehensive community college for Calgary &amp; its
    surrounding region, Bow Valley College offers you learning opportunities
    through flexible delivery options, including classrooms, online or self
    paced modules. Whether you are taking a course for interest, to enhance
    your career skills or to finish high school you have access to all of the
    traditional Bow Valley College student supports.
    Visit our website [2] or come see us at our Canmore campus.
    BOW VALLEY LEARNING COUNCIL MEMBER.
    Links:
    [1] http://www.bowvalleycollege.ca/bow-corridor.html
    </description>
        <contact_information>Canmore Campus
    Provincial Building, 800 Railway Ave.
    Canmore, AB&#xA0; T1W 1P1
    OFFICE HOURS: 8:30am - 4:30pm, Monday - Friday (except from 12 - 1pm)
    PHONE: (403) 678-3125
    FAX: (403) 678-3127
    BANFF CAMPUS: Lower Level, Banff YWCA, 102 Spray Ave., Banff (ONLY OPEN
    WHEN COURSES OFFERED).&#xA0;</contact_information>
        <email>[email protected]</email>
        <website>www.bowvalleycollege.ca/bow-corridor</website>
        <registration_information>Cancellation policy: Once your course has begun no refunds or credits will
    be given. Compassionate grounds may be considered with official
    documentation. There are no refunds, transfers, or credits if you cancel
    within one week of the course start date.
    BY PHONE: (403) 678-3125. Payment by Visa or Mastercard
    IN PERSON: Canmore Campus, Provincial Building, 800 Railway Ave., Canmore.
    Payment by cash, Visa or Mastercard.
    &#xA0;
    FUNDING ASSISTANCE&#xA0;MAY BE AVAILABLE FOR THOSE ON A LOW INCOME ON SOME
    COURSES. PLEASE ASK FOR MORE INFORMATION.</registration_information>
        <courses>
          <course>
            <title>Computer Basics/Windows 7 - Instructor led, Canmore</title>
            <description>An instructor will lead the class through the basic features of Microsoft
    Windows, the Internet and Email. Find out how to start programs, create,
    save and organize your files and use the online help feature. You&#x2019;ll also
    get an introduction to surfing the internet and setting up an email
    account. This course is designed for those with little or no computer
    experience &#x2013; and is still our most popular course. 18 HR COURSE.</description>
            <schedule_entries>
              <entry>
                <date>Mon 6:30 - 9 pm, Oct 7 - Dec 2</date>
                <date>Thu 6:30 - 9 pm, Oct 10 - Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
            <title>Word 2010 Introduction - Self-paced</title>
            <description>Explore the basics of Microsoft Word to produce professional letters and
    documents. This course guides you through the effective use of the Word
    Ribbon and Quick Access Toolbar. You&#x2019;ll learn how to efficiently edit,
    move and copy text; manipulate fonts; apply bullets and numbering; borders
    and shading; insert and re-size Clip Art; enter headers and footers; insert
    page numbers; set alignment and indents; and change page settings. You&#x2019;ll
    learn to use the AutoCorrect feature and finish documents using the
    spelling, thesaurus and grammar features.
    Self-paced, 18 hr course.
    Prerequisite recommended: Computer Basics or equivalent experience.</description>
            <schedule_entries>
              <entry>
                <date>Mon 7:30 - 9 pm, Oct 7</date>
                <date>Thu 7:30 - 9 pm, Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
    AND SO ON...FOR 64 PAGES WORTH OF CONTENT
    HELP!!!
    SGAREN

    Hello Sally,
    First, I have only heard/read good things about the book Steve recommends. It is on my to buy list one day. Been awaiting a long deserved vaction to pick it up to read.
    I approach XML files pretty much like I do any text file I am sent in that I will import or copy/paste a text file into a frame in ID and begin setting my styles. With XML, though, I first clean it up, move closing tags up to their logical close lines, remove spurious codes that mean something in HTML but don't necessarily belong in the XML file (like &#x2019 which is an apostrophe so I do a search and replace. But for &#xA0; which is a non-breaking space I simply search and replace with a regular space in general), and make sure the XML validates.
    Validation is much like making sure an HTML page is formed properly. I use an XML editor (XML BluePrint) and a text editor (UltraEdit) for these tasks. If I had to only have one or the other, I suppose the XML editor is what I would use.
    I always show the import options when I import the XML and make sure that I link to the file.
    So once a sample of the XML is on a page in ID (via File | Import XML), I highlight text within a tag, say like in your example above, the Providor name, and make it like I want and then create a new style. I generally name the styles as per the XML tag. Later on, that makes mapping tags to styles a little easier.
    Once I set up all the styles preliminarily, I map the tags to styles. You can do that either via the Tags palette or via the Structure Pane that will appear once the XML is imported. In both cases, it is found via the flyout menu at the top right of their respective windows.
    After mapping my styles to the tags, I select the root element in the Structure Pane (the topmost element. In your sample above it is "providors" and delete it. This removes the XML in your ID file. But the styles and tags are still present.
    Then I import the XML again and look to makes sure all the tags/elements are styled as intended. I then correct any errors/ommissions. Then...I'll delete the XML again and import the full XML file.
    I can upload what I did with your XML sample above so you can compare it to your source file if you would like. You would then see how/where I moved tags. Now, moving the tags is only "necessary" to avoid all the extra blank paragraphs. That can be accomplished by ID's search/replace, too. But I like to start out with the XML cleaned up, so I take the few minutes to do it.
    Take care, Mike

  • Can't Figure Out How To Import XML into a Table?

    HELP!
    I've been using InDesign for several years now... but everything Ive ever done has been basic one off layout concepts.
    I am working on a website for a musical theater actress and for her resume, Id like to make a PDF which lists in table format the show, theatre and role she had for each job.
    I could do this manually... but Id really like to learn how to just reuse the same XML data that I have for her website and import it into InDesign.
    I have looked at Adobe's help file, I have scoured the internet, and I still can't figure it out... I have done like the adobe support file says... and I cant seem to get the values I create in her resume xml file to show up in a table I create in InDesign.
    I even tried to simplify it for the learning process and did something as basic as an XML file that has 5 colors... couldnt even get that working.
    So could someone explain it to me like Im a 5 year old... how to take a XML file, import it, place it in a table and have the data actually show up in the table.
    thanks,
    brian

    Are you sure you want to use XML with tables for this? No doubt importing XML into tables is useful for some specialized tasks, such as importing formatting information inside the XML itself, but for most of the familiar tasks that XML excels at, tables are neither necessary nor useful.
    In my (limited) experience, if the XML elements are well-differentiated, by which I mean different types of data have their own distinctive tags, then the special powers of XML can be exploited more fully using the more familiar tagged text, nested tags etc. in ordinary text frames using paragraph breaks, tab characters, etc. to achieve a suitably "tabular" finished appearance.
    If you must import XML into tables, I recommend Adobe's own PDF "Adobe InDesign CS3 and XML: A Technical Reference" availabe here:
    http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf
    It sounds very daunting -- the words "technical reference" make me shudder -- but actually it's very readable and not very technical at all. Some nice pics and everything!
    Jeremy

  • a tag is creating error in import XML in InDesign CS5.5

    Hi All,
    I am doing upgrade from InDesign CS2 to InDesign CS5.5.
    I have indt file. It has been designed using the CS2 and now converted that indt file into CS5.5 using InDesign CS5.5.
    But I am facing some serious issue while doing export to pdf in CS5.5 version.
    I am following below steps:
    1) Open indt file.
    2) File Menu --> Import XML... [This XML file contains <a href="website link"> html tag]
    3) XML Import Options [no change- defalut options selected]
    4) Ideally it should merge this XML data with the indt file but it is asking me for some input and showing me "Find:" dialog [Check below snapshot]
    I did some research and find out that I am getting this Find dialog because of the <a> tag in XML. when I removed the <a> tag from XML then it didn't give any dialog box and imported XML without any issue.
    I am getting that xml from system and I cant remove the <a> tag from xml manually.
    However I was not getting any error while doing import XML in CS2 version.
    Please can anybody help in this?

    When there is "http://" in anchor tag it will pop up this input window in manual export from indd/indt to pdf and it will failed in export through action script.
    I communicated with the Adobe and it was bug. Adobe has confirmed that they would realease the patch for same sometime later, but I have not heard of anything. I got work around by removing it "http://" using java.

Maybe you are looking for

  • Disconnecting MacBookPro from Cinema Display

    Here's a stupid question that appears to be too elementary to address in the documentation: When I want to disconnect my MacBookPro from the Cinema Display, do I simply remove the connections or do I have to shut the laptop down first? Related stupid

  • Looks different when previewing in browser. Help?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/UA.dwt" codeOutsideHTMLIsLocked="false" --> <

  • I have upgraded to itunes 11.1.3 and now cant see how I sync my devices?

    Can anyone tell me how I now sync my devices thru itunes on my Macbook, since upgrading to 11.1.3. The only tab for devices is greyed out?

  • Popupfetchlistner is not invoking

    Hi, i have written following code in the second level iterator when i try to open pop-up , popup fetch listener is not getting called could any one please suggest am i missing anything? <af:popup id="noteWindow" contentDelivery="lazyUncached" eventCo

  • HT4889 do i transfer iphoto this way?

    I need to transfer my iphoto library on my laptop to my Mac desktop. I have laptop backed up using My Passport for Mac. Help?