Jamal Jamea Posted December 6, 2006 Share Posted December 6, 2006 Hi,im a new in xml i just read the tutorials yesterday and i like it.....but im just wondering..if i want to write xml file can i do it in Notepad and just give it the .xml extention..?!!! ok don't luagh on me please..im just askingwhere i can write my XML file and save it OR export it with .xml...? Link to comment Share on other sites More sharing options...
aalbetski Posted December 6, 2006 Share Posted December 6, 2006 Yes, as long as it is well-formed. You can also use any number of XML editors (I use XML Notepad from Microsoft)Ideally, you would want to use an editor that escapes the characters for you (converts < >, etc... into < > ,etc...). Link to comment Share on other sites More sharing options...
Jamal Jamea Posted December 6, 2006 Author Share Posted December 6, 2006 thnak you....but what about that editors wich escape the characters..? sorry i didn't get it....! Link to comment Share on other sites More sharing options...
aalbetski Posted December 6, 2006 Share Posted December 6, 2006 Certain charactes will cause XML to be mal-formed, such as <, >, and ".These characters are used by XML as part of its markup, All nodes must begin with a < and end with a >. All attributes must be encased in quotes, i.e. <MyNode MyAttribute="Hello">My Node Text</MyNode>If your text node required the use of <> or "<MyNode MyAttribute="Hello">5 is < 6</MyNode> then your XML will fail. Your text node should actrually contain 5 < 6. This is referred to as 'escaping' the character. The < has been changed to < XML Editors (and parsers) will automatically escape these characters for you, otherwise you need to do so manually using notepad (or any text editor) Link to comment Share on other sites More sharing options...
Jamal Jamea Posted December 9, 2006 Author Share Posted December 9, 2006 THANK you.. you was very helpful.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now