01-16-2004
Have you thought about using XML. XML is the ideal format.
There are plenty of API's available to parse the format and it
is more reliable.
For instance, in a CSV file
a, comment, with, commas, is, a, problem
or “ “ is this empty?
Also there is an issue with the disordering of data.
I could probably go on and on, but will spare you.
XML is worth learning, because it solves all these problems and more.
7 More Discussions You Might Find Interesting
1. HP-UX
Hi,
We are planning to migrate oracle 8.1.7.2 (8i) currently installed on a host with HP unix 11.0 to a host with HP Unix 11i.
The method we are adopting is backup and restore of all file systems.
Could this be a problem, apart from linking libraries on the target system.
Thanks for the... (1 Reply)
Discussion started by: amitb
1 Replies
2. UNIX for Dummies Questions & Answers
I don't know what is happening but none of my queries work. When I start mysql, even the use <database> option fails... So when I start mysql with -A, it atleast opens the database and shows the tables. But now, when I perform even a select option on the database, it hangs... Repair is not working... (5 Replies)
Discussion started by: Legend986
5 Replies
3. UNIX for Dummies Questions & Answers
How to connect a MySQL database from unix using unix shell scripting ( people are using perl scrpt to connect the same database).
I want to access a MySQL database through a shell script (4 Replies)
Discussion started by: apsprabhu
4 Replies
4. UNIX and Linux Applications
hi
am getting this error when i tried to login in unix..
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
but my application works fine...
can u guide me,, (0 Replies)
Discussion started by: senkerth
0 Replies
5. Shell Programming and Scripting
Hi ,
I am trying to install mysql but getting below error
$# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
can anyone provide me this file 'mysql.sock'
Thanks (6 Replies)
Discussion started by: aish11
6 Replies
6. UNIX and Linux Applications
On psql
select titolo,lingua from titolo where titolo ~* 'brivid';
titolo | lingua
------- + ------
Brivido | 1
On Sqlplus/gqsql
SQL> select titolo,genere,anno,lingua from titolo where titolo like '%rivid%';
TITOLO... (6 Replies)
Discussion started by: Linusolaradm1
6 Replies
7. Programming
Dear community,
I have to make a "simple" query on ORACLE 11g DB who will output ONLY numbers in field1 who exceeded a specific threshold.
In other words, assuming I have the following data in database.
FIELD1 FIELD2 FIELD3
========= ============== ... (3 Replies)
Discussion started by: Lord Spectre
3 Replies
LEARN ABOUT CENTOS
xml::xpath::node
XPath::Node(3) User Contributed Perl Documentation XPath::Node(3)
NAME
XML::XPath::Node - internal representation of a node
API
The Node API aims to emulate DOM to some extent, however the API isn't quite compatible with DOM. This is to ease transition from XML::DOM
programming to XML::XPath. Compatibility with DOM may arise once XML::DOM gets namespace support.
new
Creates a new node. See the sub-classes for parameters to pass to new().
getNodeType
Returns one of ELEMENT_NODE, TEXT_NODE, COMMENT_NODE, ATTRIBUTE_NODE, PROCESSING_INSTRUCTION_NODE or NAMESPACE_NODE. UNKNOWN_NODE is
returned if the sub-class doesn't implement getNodeType - but that means something is broken! The constants are exported by default from
XML::XPath::Node. The constants have the same numeric value as the XML::DOM versions.
getParentNode
Returns the parent of this node, or undef if this is the root node. Note that the root node is the root node in terms of XPath - not the
root element node.
to_sax ( $handler | %handlers )
Generates sax calls to the handler or handlers. See the PerlSAX docs for details (not yet implemented correctly).
MORE INFO
See the sub-classes for the meaning of the rest of the API:
o XML::XPath::Node::Element
o XML::XPath::Node::Attribute
o XML::XPath::Node::Namespace
o XML::XPath::Node::Text
o XML::XPath::Node::Comment
o XML::XPath::Node::PI
perl v5.16.3 2003-01-26 XPath::Node(3)