mirror of
https://github.com/instant-labs/instant-xml.git
synced 2025-02-21 09:22:16 +00:00
Handle Cdata tokens
This commit is contained in:
parent
c89afc2553
commit
03d83298b5
@ -333,6 +333,9 @@ impl<'xml> Iterator for Context<'xml> {
|
||||
Ok(Token::Text { text }) => {
|
||||
return Some(Ok(Node::Text(text.as_str())));
|
||||
}
|
||||
Ok(Token::Cdata { text, .. }) => {
|
||||
return Some(Ok(Node::Text(text.as_str())));
|
||||
}
|
||||
Ok(Token::Declaration { .. }) => match self.stack.is_empty() {
|
||||
false => return Some(Err(Error::UnexpectedToken(format!("{token:?}")))),
|
||||
true => {}
|
||||
|
Loading…
Reference in New Issue
Block a user