This tool does exactly what I am looking for. However I am unable to get what I am looking for. I have the following file:
<?xml version="1.0" encoding="UTF-8" ?>
<PRODUCT BUILD="08-11-2005" NAME="FileMaker Pro" VERSION="8.0v1"/>
<DATABASE DATEFORMAT="M/d/yyyy" LAYOUT="" NAME="records_database" RECORDS="17820" TIMEFORMAT="h:mm:ss a"/>
<FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="JobNumber" TYPE="NUMBER"/>
<FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="company name" TYPE="TEXT"/></METADATA>
<ROW MODID="57" RECORDID="122">
<ROW MODID="54" RECORDID="149">
------end of xml deleted
I try (and many variations of):
xml sel -t -a JobNumber /xml/filename
I would expect to see the results:
What am I doing wrong?
Your command is not nearly close to what you need to get the result you are expecting.
xml sel -N f=http://www.filemaker.com/fmpxmlresult -t -m //f:ROW -v f:COL/f:DATA -n file.xml
Looking at the documentation might help you too...
Thank you very much. I was looking at the man page.
I was trying to understand your syntax and did not find the -N switch. I googled a little more and found newer documentation that has -N.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.