shepmaster / sxd-document

An XML library in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InvalidProcessingInstructionTarget for standalone="no"

flying-sheep opened this issue · comments

parsing this:

extern crate sxd_document;

use sxd_document::parser::Parser;

fn main() {
    let s = "<?xml version='1.0' encoding='UTF-8' standalone='no'?><doc/>";

    let parser = Parser::new();
    let doc = parser.parse(s);
    println!("{:?}", doc)
}

yields

Err((2, [InvalidProcessingInstructionTarget]))

yup.

hi, could you please put an release out for this?

and one thing i don’t understand: sxd-xpath’s Cargo.toml says it needs sxd-document = "0.1.0", but is happy with 0.1.1. shouldn’t we need syntax like "^0.1.1" or "0.1" for this? or does "0.1.0" mean “compatible with” and there’s extra syntax for “exactly this version”

please put an release out for this

Done as 0.1.2

shouldn’t we need syntax like

From the crates.io docs:

If no operator is specified, this is the default requirement (e.g. 1.3 is the same as ^1.3).

ah, great, thank you!