Questions tagged [libxml2]

Software library for parsing XML documents.

libxml2 is written in the programming language, and provides bindings to , , , , / and other Pascals, , , and .

The library was originally developed as part of the GNOME project and features

Useful Links

1518 questions
9
votes
3 answers

Validating XML: No matching global declaration available for the validation root

I'm trying to validate the following XML against a XSD schema using Ruby. It simply won't work, stops with an error message telling me Error: Element 'request': No matching global declaration available for the validation root. Maybe it's the…
Matt
  • 1,610
  • 2
  • 17
  • 24
8
votes
1 answer

How to update specific XML element value using go-libxml2

I want to update a XML element value using go-libxml2. The element may occur anywhere in the XML document. For example in the following XML I want to update a element - Tove
Achaius
  • 5,904
  • 21
  • 65
  • 122
8
votes
2 answers

./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries

I recently updated my mac-os to Mojave. I was using Nginx and it was working on my previous os but after updating to Mojave, I am not able to start my Nginx. So I tried to install it again, first, it gave me c compiler error, So I downloaded the…
Nikhil Dhirmalani
  • 127
  • 1
  • 1
  • 7
8
votes
2 answers

Xcode 4 libxml/... not found, new problem

I have searched the net and the consensus seems to be to add ${SDK_DIR}/usr/lib/libxml2 to the 'Header Search Paths'. I have done this and I can see in the project inspector that it expands the to correct full path name. I'm still getting errors…
MyTallest
  • 305
  • 1
  • 2
  • 9
8
votes
4 answers

python libxml2 reader and XML_PARSE_RECOVER

I'm trying to get a reader to recover from broken XML. Using the libxml2.XML_PARSE_RECOVER option with the DOM api (libxml2.readDoc) works and it recovers from entity problems. However using the option with the reader API (which is essential due to…
bee
  • 253
  • 1
  • 10
8
votes
8 answers

Error - "gem install rails" - libxml2 is missing

I've been working through the Rails install instructions (http://railsapps.github.io/installrubyonrails-mac.html) and everything was okay up until I got to gem install rails part under New Rails Application. When I ran that I got libxml2 is missing.…
Alvin Jones
  • 251
  • 1
  • 4
  • 9
8
votes
2 answers

How to install libxml2-dev libxslt-dev on Mac os

I have installed both libxml2 and libxslt with homebrew, but it doesn't want to install libxml2-dev or libxslt-dev: Error: No available formula for libxml2-dev I have pip, port, and all I could found. I even installed the Xcode command line tools,…
Coderbit
  • 701
  • 3
  • 9
  • 31
8
votes
2 answers

Gem libxml-ruby (1.1.4) installs but fails on runtime

I'm trying to run one quite old Rails application on Mavericks where one of the requirements are: - Ruby ree-1.8.7-2009.10 - Rails 3.0.0 - libxml-ruby 1.1.4 (that's the latest version compatible with the rest of the gems. I have latest libxml2…
howdyhoward
  • 335
  • 1
  • 4
  • 12
8
votes
4 answers

How can I use Perl's XML::LibXML to extract an attribute in a tag?

I have an XML file I want to extract the string2 value here.. and also I want to set it to a new value.. How to do that?
Anandan
  • 983
  • 3
  • 13
  • 28
8
votes
3 answers

Nokogiri osx 10.5.8 libxml incompatible library version

I have hit upon a stumbling block here trying to get Nokogiri working on osx 10.5.8. Tried http://nokogiri.org/tutorials/installing_nokogiri.html and then http://martinisoftware.com/2009/07/31/nokogiri-on-leopard.html A colleague has been trying to…
Adamski
  • 3,585
  • 5
  • 42
  • 78
8
votes
2 answers

Perl script to parse XML using XML::LibXML;

I think this is a very simple issue, but I cannot figure it out despite many searches. I am trying to parse the following XML to print something similar to TAG=VALUE, so that I can write this to a CSV file. The problem is the tags are not always the…
lozwell
  • 81
  • 1
  • 1
  • 2
7
votes
1 answer

Python3 and xml/xslt libraries

In python 2.6 I did this to achieve an xsl tranform import libxml2 import libxslt ... styledoc = libxml2.parseFile(my_xslt_file) style = libxslt.parseStylesheetDoc(styledoc) doc = libxml2.parseDoc(siri_response_data) …
barking.pete
  • 191
  • 1
  • 4
7
votes
3 answers

Can I incorporate system libraries (e.g. libxml2) I compile against into a gem (e.g. nokogiri) that I can deploy to Heroku?

Nokogiri has a problem with translating to and from UTF-8 characters that turns out to come from libxml2, specifically version 2.7.6, which is the highest supported version on Ubuntu 10.04 LTS. The bug is fixed in version 2.7.7 and up, but since our…
7
votes
1 answer

Error while linking libxml2

I have a simple example for libxml2 but it returns the following error: $ gcc -Wall -lxml2 -I/usr/include/libxml2 -o ex1 ex1.c /tmp/cc6OKSKJ.o: In function `main': ex1.c:(.text+0x60): undefined reference to `xmlReadFile' ex1.c:(.text+0x70):…
Suugaku
  • 2,667
  • 5
  • 31
  • 33
7
votes
1 answer

Can't find headers for libxml2 and iOS 5.0 SDK / Xcode 4.2 (beta 3)

Seems quite a few people have encountered this issue on the official Apple Developer forums, yet didn't find a solution yet, therefore I want to try my luck here :) With the iOS 5.0 SDK and Xcode 4.2 (beta 3) it seems something is messed up, the…
Wolfgang Schreurs
  • 11,779
  • 7
  • 51
  • 92