use of org.commonjava.maven.galley.maven.model.view.MavenXmlView in project pom-manipulation-ext by release-engineering.
the class GalleyAPIWrapper method parseXmlView.
public MavenXmlView<ProjectRef> parseXmlView(final String xml) throws GalleyMavenXMLException {
final Document document = infra.getXml().parseDocument(xml, new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8)));
final DocRef<ProjectRef> ref = new DocRef<ProjectRef>(new SimpleProjectRef("unknown", "unknown"), xml, document);
return new MavenXmlView<>(Collections.singletonList(ref), infra.getXPath(), infra.getXml());
}
Aggregations