Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 9th, 2004, 02:38 PM
juzamjedi juzamjedi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 juzamjedi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to juzamjedi Send a message via Yahoo to juzamjedi
Parsing XML documents

If you wanted to parse and validate a lot of XML documents, what would you use? Is PHP a good choice for such a task, and if so which libraries you might suggest to do this?

Reply With Quote
  #2  
Old February 9th, 2004, 02:39 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Parsing XML documents

Can you elaborate a little more on what you wish to accomplish? just create a web page driven by xml?

Reply With Quote
  #3  
Old February 9th, 2004, 08:42 PM
juzamjedi juzamjedi is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 juzamjedi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to juzamjedi Send a message via Yahoo to juzamjedi
RE: Parsing XML documents

Forgive me if this gets long-winded, but you did ask me to be more specific . The quick answer: I want to take financial statements that all U.S. corportations submit and find out the truth (e.g. look for the next Enron, Worldcom,). Now to accomplish that goal, the site I'm building would need to accomplish multiple subgoals.

1. It needs to download new SEC filings from Edgar Online as they become available. These are the xml source documents. This is something that I'd like to schedule daily / weekly, and there are 2000+ U.S. companies that file maybe 10 of these statements per year.

2. I need to read the values for every element in the source documents. Some of the source values I'd be reusing a lot, some of them I'd need only once. All of these documents use a schema so I should know the structure they all have, HOWEVER, there are 2000+ elements. Would it be most efficient to read this all at once, or line by line?

3. However the server reads the data it then needs to perform a lot of functions on the elements, and then write the results to an output xml document.

4. After the output xml document is created, we'd need to validate the data structure against a schema that I am creating. Would PHP be best suited to accomplish this, or perhaps something else? I seem to remember reading that the default xml parser that comes with PHP doesn't validate, but I could be wrong.

If you could advise me on the above 4 issues then I'd be in ok shape. But if you're feeling especially helpful, I'm wondering something else. Once we have the validated xml output do you know of any nice libraries to transform that into a .pdf file for presentation?

Reply With Quote
  #4  
Old February 17th, 2004, 03:54 AM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Parsing XML documents

PHP comes with XML support but you'll probably find the pear library easier to handle

http://pear.php.net

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Parsing XML documents


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway