Subject: | xsh fails to find nodes |
bash-4.3$ xsh -X -I VerySimple.xml
defined(@array) is deprecated at ~/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/XML/XSH/Completion.pm line 111.
(Maybe you should just omit the defined()?)
-------------------------------------------------------------
xsh - XML Editing Shell version 1.8.2/0.12 (Revision: 1.32)
-------------------------------------------------------------
Copyright (c) 2002 Petr Pajas.
This is free software, you may use it and distribute it under
either the GNU GPL Version 2, or under the Perl Artistic License.
parsing VerySimple.xml
done.
Using terminal type: Term::ReadLine::Gnu
Hint: Type `help' or `help | less' to get more help.
xsh _:/> ls /cat-import
Found 0 node(s).
xsh _:/> ls /
<?xml version="1.0" encoding="UTF-8"?>
<cat-import xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://san.mibac.it/cat-import" xmlns:eac-cpf="http://san.mibac.it/eac-san/" xmlns:ead-complarc="http://san.mibac.it/ead-san/" xmlns:ead-str="http://san.mibac.it/ricerca-san/" xmlns:scons="http://san.mibac.it/scons-san/" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://san.mibac.it/cat-import http://www.san.beniculturali.it/tracciato/cat-import.xsd">
<catheader>
<systemId>LBC-Archivi</systemId>
<contact>
<name>Giancarlo Scola</name>
<mail>giancarlo@codexcoop.it</mail>
<phone>+39 0382 35668</phone>
<fax/>
</contact>
<filedesc>
<title>Export da LBC-Archivi (PLAIN) a SAN</title>
<abstract>Test</abstract>
<date>2014-01-23T18:48:45+01:00</date>
</filedesc>
</catheader>
<catListRecords>
<catRecord>
<catRecordHeader type="complesso archivistico">
<id>MIBA0004FE</id>
<lastUpdate>2014-01-23T18:48:45+01:00</lastUpdate>
</catRecordHeader>
<catRecordBody>
<ead xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://san.mibac.it/ead-san/">
<archdesc level="otherlevel" otherlevel="fondo">
<did>
<unitid type="LBC-Archivi" identifier="http://www.lombardiabeniculturali.it/archivi/complessi-archivistici/MIBA0004FE/">MIBA0004FE</unitid>
<unittitle type="principale">Comune di Ardesio</unittitle>
<unitdate normal="15070101/18241231" datechar="principale">1507 - 1824</unitdate>
<physdesc>
<extent>unità 41</extent>
</physdesc>
<origination>MIDB0001E4</origination>
<repository id="MIAA000169" label="LBC-Archivi">Comune di Ardesio</repository>
</did>
<processinfo>scheda pubblicata</processinfo>
<relatedmaterial>
<archref>MIBA0004FE</archref>
</relatedmaterial>
</archdesc>
</ead>
</catRecordBody>
</catRecord>
</catListRecords>
</cat-import>
Found 1 node(s).
xsh _:/> Good bye!
bash-4.3$ cat VerySimple.xml | xpath '/cat-import/catListRecords'
Found 1 nodes:
-- NODE --
<catListRecords>
<catRecord>
<catRecordHeader type="complesso archivistico">
<id>MIBA0004FE</id>
<lastUpdate>2014-01-23T18:48:45+01:00</lastUpdate>
</catRecordHeader>
<catRecordBody>
<ead xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://san.mibac.it/ead-san/">
<archdesc level="otherlevel" otherlevel="fondo">
<did>
<unitid type="LBC-Archivi" identifier="http://www.lombardiabeniculturali.it/archivi/complessi-archivistici/MIBA0004FE/">MIBA0004FE</unitid>
<unittitle type="principale">Comune di Ardesio</unittitle>
<unitdate normal="15070101/18241231" datechar="principale">1507 - 1824</unitdate>
<physdesc>
<extent>unit� 41</extent>
</physdesc>
<origination>MIDB0001E4</origination>
<repository id="MIAA000169" label="LBC-Archivi">Comune di Ardesio</repository>
</did>
<processinfo>scheda pubblicata</processinfo>
<relatedmaterial>
<archref>MIBA0004FE</archref>
</relatedmaterial>
</archdesc>
</ead>
</catRecordBody>
</catRecord>
</catListRecords>