mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-09 18:24:26 +02:00
add tag name uri
This commit is contained in:
parent
a28e52fbcd
commit
37e685ed45
@ -196,6 +196,10 @@ import java.util.*;
|
|||||||
name=tag.substring(i);
|
name=tag.substring(i);
|
||||||
}
|
}
|
||||||
start.setName(name);
|
start.setName(name);
|
||||||
|
ResXmlStartNamespace ns = getStartNamespaceByPrefix(prefix);
|
||||||
|
if(ns!=null){
|
||||||
|
start.setNamespaceReference(ns.getUriReference());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public String getTagName(){
|
public String getTagName(){
|
||||||
ResXmlStartElement startElement=getStartElement();
|
ResXmlStartElement startElement=getStartElement();
|
||||||
@ -363,6 +367,21 @@ import java.util.*;
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
public ResXmlStartNamespace getStartNamespaceByPrefix(String prefix){
|
||||||
|
if(prefix==null){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
for(ResXmlStartNamespace ns:mStartNamespaceList.getChildes()){
|
||||||
|
if(prefix.equals(ns.getPrefix())){
|
||||||
|
return ns;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ResXmlElement xmlElement=getParentResXmlElement();
|
||||||
|
if(xmlElement!=null){
|
||||||
|
return xmlElement.getStartNamespaceByPrefix(prefix);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
public List<ResXmlStartNamespace> getStartNamespaceList(){
|
public List<ResXmlStartNamespace> getStartNamespaceList(){
|
||||||
return mStartNamespaceList.getChildes();
|
return mStartNamespaceList.getChildes();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user