vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Editing XML Files? (https://vborg.vbsupport.ru/showthread.php?t=98431)

Bubble #5 10-14-2005 10:35 PM

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:

filburt1 10-14-2005 10:59 PM

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 .

Guest190829 10-14-2005 11:15 PM

Quote:

Originally Posted by filburt1
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 .

I just got a bunch of xml books that I ordered off of Amazon. I'm really excited about learning it for my website.

Bubble #5 10-14-2005 11:24 PM

Quote:

Originally Posted by filburt1
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.

This is the error we're getting using notepad.

Quote:

The XML page cannot be displayed.
Cannot view XML input using style sheet.

--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource Line 1, Position 1


filburt1 10-14-2005 11:50 PM

Are you sure Notepad is opening it and not Internet Explorer?

Bubble #5 10-15-2005 12:05 AM

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).

filburt1 10-15-2005 12:12 AM

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.

Bubble #5 10-15-2005 12:52 AM

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 :)

Bubble #5 10-16-2005 08:34 PM

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:

filburt1 10-16-2005 08:44 PM

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.


All times are GMT. The time now is 05:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01088 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete