Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override bool Read()
- {
- bool status = base.Read();
- if( status )
- {
- if( base.NodeType == XmlNodeType.Element )
- {
- dowrite = false;
- // Got a node with prefix. This must be one of those "<o:p>"
- // or something else. Skip this node entirely. We want prefix-
- // less nodes so that the resultant XML requires no namespace.
- foreach (string line in AllowedTags)
- {
- if (base.Name == line ||
- (base.Name == "html" && first == false))
- {
- dowrite = true;
- first = true;
- }
- }
- if( base.Name.IndexOf(':') > 0 )
- dowrite=false;
- if(!dowrite)
- base.Skip();
- }
- }
- return status;
- }
Add Comment
Please, Sign In to add comment