User Tag List

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: XML Code Help

  1. #1
    Regular Member martind511's Avatar
    Join Date
    Jan 2007
    Location
    Swindon
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats

    Vehicle : Audii A3 Sportback

    Trim : S Line Black Edition

    Engine : 2.0 Diesel

    Year : 2011

    Default XML Code Help

    Anyone know how to embed a link to a file stored on the local network using XML - I am just editing a help box which pops up when you click the help button. There is some text in the box and I want to display a link which links to a PDF file stored on a server. I have got this so far:

    Code:
    <help text="Help" headerText="Help Information" toolTip="Display help information">
    
     <message>The information contained in this Directory is Read Only.  Click the 'Edit My Info' button to update your own Directory Information.  If you need any further help please click here 
    --> <label>Directory Search and Update - Guidance Notes
    </label>
    <file>
           <href src="<A href="file://\\SERVER_NAME\FOLDER\FILENAME.pdf"/">\\SERVER_NAME\FOLDER\FILENAME.pdf"/>
    </file>      
     
    
    </message>
        </help>
    The text displays ok but there is no hyperlink??? I have played around for ages but I either get errors or the URL for the file appears as plaintext.

    Anyone????

  2. #2
    Regular Member MysteryElite's Avatar
    Join Date
    Feb 2007
    Location
    North Somerset
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    What is the context of this - i.e. what are you writing? An HTML page or similar?

    Not sure if the forum is masking it, and sorry if I'm stating the obvious, but you will need to encode the URL - within the href, the angle brackets would need to be &lt; for '<' and &gt; for '>'.

    You may also need to replace the " characters with &quot; depending on the context and how this is being interpreted - basically you are placing an HTML link within an XML document, but the XML parser will see this as XML and get very confused.

    I have a nasty feeling that the "//" element of the url also may need some work as well as I seem to recall the XML parser does (or may) see the "/" as the start of an end XML element.

    I've done quite a lot of XML embedding in config files etc so if I've got the wrong end of the stick or if this is not clear, please let me know - if you want to PM me the file in question I'll have a look.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error code reading and code readers
    By Ben50n in forum Engine & Drivetrain
    Replies: 14
    Last Post: 27th August 2012, 16:43
  2. code anyone ?
    By hippo in forum Vectra C / Signum Troubleshooting
    Replies: 2
    Last Post: 13th November 2011, 22:47
  3. Car Pass - Result! Key Code & Radio Code
    By mxt in forum Vectra C / Signum Car Chat
    Replies: 8
    Last Post: 20th December 2010, 13:01
  4. code for cd 40
    By Eddie Dee in forum Electrical & ICE (including SatNav)
    Replies: 1
    Last Post: 14th March 2007, 01:16
  5. Key Code
    By HB39AA in forum Vectra C / Signum Car Chat
    Replies: 1
    Last Post: 29th December 2006, 15:50

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Bookmarks

Posting Permissions

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