Hi Folks,
I'm not finding this part of REALbasic's XML implementation too well
documented (or maybe I'm missing something altogether). The XML
document I'm trying to recreate is at the bottom of my message. The
problem I've run into is with setting an attribute that has a namespace.
I need to write out the following attribute in the <image> element:
xlink:href="Test Bitmap.png"
If I write out something like:
//e is an working XMLElement object
e.SetAttribute("xlink:href",Image.Name)
Rb will crash (2006R2). I assume this is because I'm not setting up
the namespace properly, as my sample XML document does in the <svg>
element:
xmlns:xlink="http://www.w3.org/1999/xlink"
Am I on the right track for using this namespace (xlink)? How do I go
about adding it to my XML document so that I can use it in attribute?
How do I go about using this namespace in attribute?
Thanks,
John Balestrieri
----------
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Layer_1" xmlns:xlink="http://www.w3.org/1999/
xlink"
width="36.499" height="46.248" viewBox="0 0 36.499 46.248"
overflow="visible" enable-background="new 0 0 36.499 46.248"
xml:space="preserve">
<image width="146" height="185" xlink:href="Test Bitmap.png"
transform="matrix(0.25 0 0 0.25 0 0)">
</image>
</svg>
----------
The information contained in this communication is intended for the
use of the designated recipients named above. If the reader of this
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any
review, dissemination, distribution or copying of this communication
is strictly prohibited. If you have received this communication in
error, please notify The Associated Press immediately by telephone at
+1-212-621-1898 and delete this email. Thank you.
John Balestrieri
Tinrocket, LLC
www.tinrocket.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>