xmllint Questions
4
I've seen this syntax several places (eg, here):
xmllint --xpath '/plist/array/string/text()' tmp.xml, used to query a particular XML node using an xpath selector. However, I'm getting the error U...
3
Solved
I created the following XSD (with Eclipse):
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.example.com" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="h...
Infraction asked 4/5, 2012 at 8:8
2
The problem is that I am trying to validate an xml file using xmllint. On my machine (OSX 10f.7.5) it says the xml is invalid. When a co-worker tries it on his machine, it says it is valid. I am no...
3
Solved
I am using xmllint to do some validations and I have an XML instance document which needs to validate against two schemas: one for the outer "envelope" (which includes an any element) and one for t...
1
Solved
I am using xmllint to clean up my .xml file but for some reason the output adds <?xml version="1.0"?> to the first line. Is there a flag to have this be removed?
Durra asked 5/5, 2015 at 17:25
1
Solved
I have a local DTD file test.dtd. Content is :
<!DOCTYPE coord [
<!ELEMENT coord (date)>
<!ELEMENT date (#PCDATA)>
]>
I'd like to validate an XML using xmllint. This XML has no...
1
Solved
I'm using xmllint in a bash script to perform an xpath on some data. The xpath will not always match against the data, and this is ok. From xmllint documentation:
--xpath "XPath_expression"
Run a...
2
Solved
I'm working on a tool to help a user author XHTML-ish documents which are similar in nature to JSP files. The documents are XML and can contain any well-formed tags in the XHTML namespace, and weav...
Flashlight asked 1/4, 2014 at 1:57
2
Solved
xmllint --xpath "//project" test.xml
fails on
<?xml version="1.0" encoding="UTF-8"?>
<projects>
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0...
2
Solved
I am using cygwin on a window 8 machine. When I type
$ xmllint --format something.xml
It says: -bash: xmllint: command not found
How can I use xmllint with cygwin? Is there any other alternati...
3
Solved
I have an HTML page that is generated by an existing tool - I cannot change the output of this tool.
However, I want to use xmllint with the --xpath option to pick out a few specific pieces of inf...
1
Solved
I'm trying to write a script that will look through a directory, find all the XML files, run them through xmllint, and save the formatted results to a file of the same name in a subdirectory called...
2
Solved
Command line xmllint --schema validation fails but $? returns 0
myinput.xml:
<myinput><header>mytestvalue</header></myinput>
myschema.xsd
<xsd:schema xmlns:xsd="http...
Uno asked 1/7, 2013 at 1:41
1
Solved
Trying to validate an XML document; however, xmllint is insisting on reading the options as the file so I'm getting FileNotFound exceptions. Just to confirm, I have the xmllint.exe in the same fold...
2
Solved
Is it possible (and if so, how) with xml_grep to get the value of a specific attribute from a specific element? I only seem to be able to output the information between tags.
example:
<eid>...
Pyelitis asked 19/2, 2013 at 13:58
1
Solved
Using xmllint --shell, I execute
chapter > cat *
-------
<title>Getting to Know Penguins</title>
-------
<abstract>
<para>Penguins are cute.</para>
</abstr...
1
Solved
By default xmllint appears to indent by 2 spaces, Is there a way to change the level of indentation on Windows?
1
Solved
I want to add an attribute to the tag, using xmllint.
Can I do this is through xmllint?
© 2022 - 2024 — McMap. All rights reserved.