The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Editing XML Files?
What is the best program(s) to use to edit a XML file? We've tried notepad and HTML editors and while they do allow us to edit the files, when we save them as XML and open the files again we get errors So what's the best thing to use to edit them? :ermm:
|
#2
|
|||
|
|||
Dreamweaver has some simple support for XML (especially Dreamweaver 8). There are also very powerful XML tools such as Oxygen. Eclipse also has XML support.
What errors do you get? As long as you use valid XML, I don't see how you could get errors saving and reopening the file. As a side note, XML is awesome. Anybody reading this thread who doesn't know XML should learn it immediately. I'm using XML for a new project at my web site that will blow your mind (I am not modest). Hint: with XML, you can publish information from vBulletin to any other application that supports XML parsing. And yes, you can create XML in PHP: http://www.php.net/dom . |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Quote:
Quote:
|
#5
|
|||
|
|||
Are you sure Notepad is opening it and not Internet Explorer?
|
#6
|
|||
|
|||
The first time or the second time? We originally opened it in IE and copied it. Then we pasted it in notepad and edited/saved as xml. When we reopen it we get the error above, although every once and a while it does open correctly (after saving it).
|
#7
|
|||
|
|||
You probably copied the visual expand/collapse bits. Don't use IE at all for XML except for viewing (and I use Firefox for that). Only copy and paste in a text or XML editor.
|
#8
|
|||
|
|||
That was the problem. Now when I open straight to notepad/wordpad and edit/save it seems to save correctly
Thank you filburt1, I appreciate the help! I'm also downloading Oxygen now |
#9
|
|||
|
|||
We went to the library and got a bunch of books on XML. It's very straight forward and easy to learn. You can even double quote with it. There is however one thing that we don't understand and we can't find in any of the XML manuals, so hopefully someone here knows the answer. We noticed on a lot of skins that the date area is written out as 'date="1121280429"' or 'date="1121146500"' or similar.
Why is this? :ermm: |
#10
|
|||
|
|||
It represents seconds since the epoch (midnight on January 1st, 1970). It's the standard date format that vB adopted as well. It has the benefit of very easy mathematical calculactions including comparisons and difference as well as storage as a simple numeric type, but the disadvantages of not being human-readable in the slightest.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|