Skip to content

Commit

Permalink
implement xml pp namespace features #18
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed May 2, 2023
1 parent e8fff62 commit 0ec2b3f
Show file tree
Hide file tree
Showing 6 changed files with 1,224 additions and 1,105 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2022 github.com/REAndroid
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ private void linkStartNameSpace(){
startNamespace.addAttributeReference(this);
}
private void unLinkStartNameSpace(){
ResXmlElement xmlElement=getParentResXmlElement();
if(xmlElement==null){
ResXmlElement xmlElement = getParentResXmlElement();
if(xmlElement == null){
return;
}
ResXmlStartNamespace startNamespace=xmlElement.getStartNamespaceByUriRef(getNamespaceReference());
if(startNamespace==null){
ResXmlStartNamespace startNamespace =
xmlElement.getStartNamespaceByUriRef(getNamespaceReference());
if(startNamespace == null){
return;
}
startNamespace.removeAttributeReference(this);
Expand Down
Loading

0 comments on commit 0ec2b3f

Please sign in to comment.