Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9

Thread: XML formatting

  1. #1
    Join Date
    May 2003
    Location
    St. Paul, MN
    Posts
    540

    XML formatting

    I'm having to convert some stuff to an XML format. I know zip about XML...but I have a file that I'm using as a model.

    I've got a line like this:

    <respcondition title="0 0.6 inches" >

    actually, it's 0.6"

    When my translator kicks out:

    <respcondition title="0 0.6 "" >

    the system chokes. How do I tell it to stick in a literal quote?

    Thanks...

    Gary

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    The quote must be escaped like so:

    Code:
    \"
    A list of characters that need to be escaped are found in the Strings section here:
    http://www.indigorose.com/webhelp/am.../Variables.htm

  3. #3
    Join Date
    May 2003
    Location
    St. Paul, MN
    Posts
    540
    Odd... the XML displayer chokes on this:

    <respcondition title="0 .12\" to .20\" " >
    ---------------------------------^

    Any suggestions?

    GcB
    Gary Brown
    Examiner Corporation
    "How do you know
    They know what they know?"

    Company:The Examiner
    Glass:FusedLight
    Politics:ObamaUSA

  4. #4
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    I have XML files that have things like "Item="4 x 8 x 7/16" and Item="Anderson egress basement windowCW235 RO 3' 5 3/8" H x 4' 9" W" and they don't cause any problems. I haven't used these file with AMS.

    What are you using to display the XML file?
    Dermot

    I am so out of here

  5. #5
    Join Date
    May 2003
    Location
    St. Paul, MN
    Posts
    540
    I'm just loading it into FireFox.
    Gary Brown
    Examiner Corporation
    "How do you know
    They know what they know?"

    Company:The Examiner
    Glass:FusedLight
    Politics:ObamaUSA

  6. #6
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Have you tried IE? That's what I use and it doesn't complain about the embedded quotes.
    Dermot

    I am so out of here

  7. #7
    Join Date
    May 2003
    Location
    St. Paul, MN
    Posts
    540
    No luck... gets ill in IE, too.
    Gary Brown
    Examiner Corporation
    "How do you know
    They know what they know?"

    Company:The Examiner
    Glass:FusedLight
    Politics:ObamaUSA

  8. #8
    Join Date
    May 2003
    Location
    St. Paul, MN
    Posts
    540
    I guess it really doesn't matter. I sent a sample file to The Customer and the program it's supposed to end up in ate it without a burp...so I guess I won't worry about it!

    GcB
    Gary Brown
    Examiner Corporation
    "How do you know
    They know what they know?"

    Company:The Examiner
    Glass:FusedLight
    Politics:ObamaUSA

  9. #9
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Hey Gary,

    What about using &quot; instead?

    <respcondition title="0 .12&quot; to .20&quot; " >

    Since you are viewing it in a browser it might work.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. XML Stuff...been a while
    By rhosk in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 04-12-2007, 01:49 AM
  2. XML processing
    By bgc in forum AutoPlay Media Studio 6.0
    Replies: 5
    Last Post: 01-04-2007, 07:42 AM
  3. Error inserting XML
    By TJS in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 06-08-2006, 10:30 AM
  4. XML format
    By TJ_Tigger in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 10-04-2005, 12:47 PM
  5. Spotlight: XML Actions Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-15-2004, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts