QName aname = reader.getAttributeQName(i);
QName aname = reader.getAttributeName(i);
  private boolean isIgnorableWhitespace(XMLParser reader, char[] b,                                        boolean testCharacters)    throws XMLStreamException  {    XMLParser.Doctype doctype = reader.doctype;    if (doctype == null)      return false;    String currentElement = reader.getCurrentElement();    // check for xml:space    int ac = reader.getAttributeCount();    for (int i = 0; i < ac; i++)      {        QName aname = reader.getAttributeQName(i);        if ("space".equals(aname.getLocalPart()) &&            XMLConstants.XML_NS_URI.equals(aname.getNamespaceURI()))          {            if ("preserve".equals(reader.getAttributeValue(i)))              return false;          }      }    XMLParser.ContentModel model = doctype.getElementModel(currentElement);    if (model == null || model.type != XMLParser.ContentModel.ELEMENT)      return false;    if (model.external && xmlStandalone)      return false;    boolean white = true;    if (testCharacters)      {        for (int i = 0; i < b.length; i++)          {            if (b[i] != ' ' && b[i] != '\t' && b[i] != '\n' && b[i] != '\r')              {                white = false;                break;              }          }      }    return white;  }