The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. December 05, 2008, 03:21:15 AM

Login with username, password and session length


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

Posts: 297

bloody hacker


View Profile WWW
« 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

Of course Big Brother exists, he is the embodiment of the party..... Does he exist in the same way I exist?....... You, do not exist.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 5229


:sniffle: Humor was so much easier before.


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

If I can't be Mr. Root then I don't want to play.
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 635



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

DangerMouse
Expert
****
Offline Offline

Posts: 174



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


:sniffle: Humor was so much easier before.


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

If I can't be Mr. Root then I don't want to play.
jammaster82
Expert
****
Offline Offline

Posts: 297

bloody hacker


View Profile WWW
« 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

Of course Big Brother exists, he is the embodiment of the party..... Does he exist in the same way I exist?....... You, do not exist.
jammaster82
Expert
****
Offline Offline

Posts: 297

bloody hacker


View Profile WWW
« 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

Of course Big Brother exists, he is the embodiment of the party..... Does he exist in the same way I exist?....... You, do not exist.
thedarkness
Global Moderator
Lifer
*****
Offline Offline

Posts: 581



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
Expert
****
Offline Offline

Posts: 297

bloody hacker


View Profile WWW
« 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

Of course Big Brother exists, he is the embodiment of the party..... Does he exist in the same way I exist?....... You, do not exist.
DangerMouse
Expert
****
Offline Offline

Posts: 174



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!