From 5b9aeb694cc7839163f684244c37a3029b9a1c8e Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 7 Dec 2010 23:40:09 +0100 Subject: Add `#xmlPI` support to xmerl_xpath:write_node/1 --- lib/xmerl/src/xmerl_xpath.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/xmerl/src/xmerl_xpath.erl') diff --git a/lib/xmerl/src/xmerl_xpath.erl b/lib/xmerl/src/xmerl_xpath.erl index 40ba48b357..d9dae7c53f 100644 --- a/lib/xmerl/src/xmerl_xpath.erl +++ b/lib/xmerl/src/xmerl_xpath.erl @@ -306,6 +306,10 @@ write_node(#xmlNode{pos = Pos, write_node(#xmlNode{pos = Pos, node = #xmlComment{parents = Ps}}) -> {comment, Pos, '', Ps}; +write_node(#xmlNode{pos = Pos, + node = #xmlPI{name = Name, + parents = Ps}}) -> + {processing_instruction, Pos, Name, Ps}; write_node(_) -> other. -- cgit v1.2.3