This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 063414246 Update readme.
063414246 is described below

commit 0634142463c3bc2a1272ef8a8089c850fcb41c2a
Author: James Bognar <[email protected]>
AuthorDate: Sun Sep 28 12:19:17 2025 -0400

    Update readme.
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 597788a82..5cc339134 100644
--- a/README.md
+++ b/README.md
@@ -174,12 +174,12 @@ public class ApiTest {
 import org.apache.juneau.xml.*;
 
 // Serialize to XML
-String xml = XmlSerializer.DEFAULT_READABLE.serialize(person);
+String xml = Xml.of(person);
 System.out.println(xml);
 // Output: <object><name>John</name><age>30</age></object>
 
 // Parse XML back to POJO
-Person parsed = XmlParser.DEFAULT.parse(xml, Person.class);
+Person parsed = Xml.to(xml, Person.class);
 ```
 
 ### HTML Serialization
@@ -188,7 +188,7 @@ Person parsed = XmlParser.DEFAULT.parse(xml, Person.class);
 import org.apache.juneau.html.*;
 
 // Serialize to HTML table
-String html = HtmlSerializer.DEFAULT_READABLE.serialize(person);
+String html = Html.of(person);
 System.out.println(html);
 // Output: 
<table><tr><th>name</th><td>John</td></tr><tr><th>age</th><td>30</td></tr></table>
 ```

Reply via email to