The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 19, 2019, 01:50:31 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Xml tools  (Read 4206 times)
jammaster82
Lifer
*****
Offline Offline

Posts: 666


Thats craigs list for ya


View Profile
« on: June 06, 2008, 09:04:36 AM »

What do people on the dark side of
the force use for xml notepad equivalency?

 I refuse to install .NET and micrapsofts XML notepad...

 preferably java version i also have ubuntu available.

:: waits for perkiset to mention he avoids tools and memorizes it freehand in his mind and transcribes later to grain of rice ::   Praise

 ROFLMAO

any suggestions on good tools for win or linux? 
« Last Edit: June 06, 2008, 09:12:47 AM by jammaster82 » Logged

The watched pot, never boils... But if you walk away from it , the soup burns.  What gives?
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: June 06, 2008, 09:48:49 AM »

I avoid tools, memorize it first but later backup to a grain of rice.

Then I use this: http://www.perkiset.org/forum/php/perks_xml_handler_class-t861.0.html

... because writing big stuff is just too hard by hand, so I do it all programmatically.
« Last Edit: June 06, 2008, 09:51:02 AM by perkiset » Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #2 on: June 06, 2008, 10:43:50 AM »

Yeah. Generally, I just use a naked hard-disk platter and a paperclip with a strong magnet duct-taped around the other end.

That's my IDE of choice for everything.
Logged

hai
DangerMouse
Expert
****
Offline Offline

Posts: 244



View Profile
« Reply #3 on: June 06, 2008, 11:33:22 AM »

Personally just build DOM objects in PHP and generate XML that way.

DM
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #4 on: June 06, 2008, 02:09:38 PM »

Yeah. Generally, I just use a naked hard-disk platter and a paperclip with a strong magnet duct-taped around the other end.

Praise
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
jammaster82
Lifer
*****
Offline Offline

Posts: 666


Thats craigs list for ya


View Profile
« Reply #5 on: June 06, 2008, 10:13:06 PM »

Yeah. Generally, I just use a naked hard-disk platter and a paperclip with a strong magnet duct-taped around the other end.

That's my IDE of choice for everything.

 ROFLMAO  ROFLMAO   ROFLMAO

Logged

The watched pot, never boils... But if you walk away from it , the soup burns.  What gives?
jammaster82
Lifer
*****
Offline Offline

Posts: 666


Thats craigs list for ya


View Profile
« Reply #6 on: June 06, 2008, 10:13:40 PM »

Personally just build DOM objects in PHP and generate XML that way.

care to elaborate/example?

Logged

The watched pot, never boils... But if you walk away from it , the soup burns.  What gives?
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #7 on: June 07, 2008, 12:08:31 AM »

01001001 00100000 01110111 01101111 01110010 01101011 00100000 01100101 01111000 01100011 01101100 01110101 01110011 01101001 01110110 01100101 01101100 01111001 00100000 01101001 01101110 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110 00001101 00001010 00001101 00001010 01000011 01101000 01100101 01100101 01110010 01110011 00101100 00001101 00001010 01110100 01100100
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
jammaster82
Lifer
*****
Offline Offline

Posts: 666


Thats craigs list for ya


View Profile
« Reply #8 on: June 07, 2008, 02:36:21 AM »

 49 20 70 72 65 66 65 72 20 48 65 78 2e 20 20 6a 61 6d 6d 61 73 74 65 72 38 32 20

Logged

The watched pot, never boils... But if you walk away from it , the soup burns.  What gives?
DangerMouse
Expert
****
Offline Offline

Posts: 244



View Profile
« Reply #9 on: June 07, 2008, 03:18:34 AM »

care to elaborate/example?

Sure. Details can be found at http://uk2.php.net/manual/en/intro.dom.php - takes a little while to get used to the method but generally speaking its fairly easy.

Code:
$xml = new DOMDocument();

// Create Element
$testNode = $xml->createElement('TestNode');

// Add Attribute
$testNode->setAttribute('TestAttrib', 'myValue');

// Create an Element another way
$anotherNode = new DOMElement('AnotherNode');

// Appeand 'AnotherNode' as a child of 'TestNode'
$testNode->appendChild($anotherNode);

// Append 'TestNode' to document
$xml->appendChild($testNode);

// Display the XML
echo $xml->save();

Bit of a contrived example obviously, but thats the  general idea.

DM
Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!