Xmlbeam
Java XML library. A really cool one. Obviously.
Install / Use
/learn @SvenEwald/XmlbeamREADME
XMLBeam
This is a Java XML library with an extraordinary expressive API.
By using XPath for read and write operations, many operations take only one line of Java code.
This is how it looks:
<xml>
<example>
<content type="foo" >bar</content>
</example>
</xml>
Access XML content in an object oriented way:
public interface Example {
// This is a getter for the attribute "type"
@XBRead("/xml/example/content/@type")
String getType();
// This is a getter and a setter for the value of the element "content"
@XBAuto("/xml/example/content")
XBAutoValue<String> content();
}
Example example = new XBProjector().io().file("example.xml").read(Example.class);
String type = example.getType(); // "foo"
String content = example.content().get(); // "bar"
example.content().set("new value");
Or, direct access via XPath enabled collection types:
Map<String,String> map = new XBProjector().io().file("example.xml").readAsMapOf(String.class);
String type = map.get("/xml/example/content/@type");
String content = map.get("/xml/example/content");
map.put("/xml/example/content","new value");
Learn more on xmlbeam.org
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
